feature/IO-3357-Reynolds-and-Reynolds-DMS-API-Integration Translations / Export Logs

This commit is contained in:
Dave
2025-11-10 14:30:11 -05:00
parent a5f8fbacc1
commit 91f419f4b3
5 changed files with 95 additions and 45 deletions

View File

@@ -192,25 +192,31 @@ export function DmsPostForm({ bodyshop, socket, job, logsRef }) {
{dms === "rr" && (
<>
{/* Advisor + inline Refresh (restores original behavior with better UX) */}
{/* Advisor + inline Refresh (binding fixed via inner noStyle Form.Item) */}
<Col xs={24} sm={24} md={12} lg={8}>
<Form.Item name="advisorNo" label={t("jobs.fields.dms.advisor")} rules={[{ required: true }]}>
<Form.Item label={t("jobs.fields.dms.advisor")} required>
<Space.Compact block>
<Select
style={{ flex: 1 }}
loading={advLoading}
allowClear
placeholder={t("general.actions.select", "Select...")}
popupMatchSelectWidth
options={advisors
.map((a) => {
const value = getAdvisorNumber(a);
if (value == null) return null;
return { value: String(value), label: getAdvisorLabel(a) || String(value) };
})
.filter(Boolean)}
notFoundContent={advLoading ? t("general.loading") : t("general.none")}
/>
<Form.Item
name="advisorNo"
noStyle
rules={[{ required: true, message: t("general.validation.required") }]}
>
<Select
style={{ flex: 1 }}
loading={advLoading}
allowClear
placeholder={t("general.actions.select", "Select...")}
popupMatchSelectWidth
options={advisors
.map((a) => {
const value = getAdvisorNumber(a);
if (value == null) return null;
return { value: String(value), label: getAdvisorLabel(a) || String(value) };
})
.filter(Boolean)}
notFoundContent={advLoading ? t("general.labels.loading") : t("general.labels.none")}
/>
</Form.Item>
<Tooltip title={t("general.actions.refresh")}>
<Button
aria-label={t("general.actions.refresh")}
@@ -336,12 +342,12 @@ export function DmsPostForm({ bodyshop, socket, job, logsRef }) {
style={{ marginBottom: 12 }}
title={`${t("jobs.fields.dms.payer.payer_type")} #${index + 1}`}
extra={
<Tooltip title={t("jobs.actions.remove", "Remove")}>
<Tooltip title={t("general.actions.remove", "Remove")}>
<Button
type="text"
danger
icon={<DeleteFilled />}
aria-label={t("jobs.actions.remove", "Remove")}
aria-label={t("general.actions.remove", "Remove")}
onClick={() => remove(field.name)}
/>
</Tooltip>
@@ -405,7 +411,7 @@ export function DmsPostForm({ bodyshop, socket, job, logsRef }) {
})) ?? []
}}
>
{/* Anchor trigger restored (was missing) */}
{/* Anchor trigger */}
<a href="#" onClick={(e) => e.preventDefault()}>
<DownOutlined />
</a>

View File

@@ -1035,7 +1035,7 @@
"alreadyexported": "This job has already been sent to the DMS. If you need to resend it, please use admin permissions to mark the job for re-export."
},
"labels": {
"refreshallocations": "Refresh to see DMS Allocataions."
"refreshallocations": "Refresh to see DMS Allocations."
}
},
"documents": {
@@ -1212,6 +1212,7 @@
},
"general": {
"actions": {
"select": "Select",
"optional": "Optional",
"add": "Add",
"autoupdate": "{{app}} will automatically update in {{time}} seconds. Please save all changes.",
@@ -1855,7 +1856,7 @@
"loss_of_use": "Loss of Use",
"lost_sale_reason": "Lost Sale Reason",
"ma2s": "2 Stage Paint",
"ma3s": "3 Stage Pain",
"ma3s": "3 Stage Paint",
"mabl": "MABL?",
"macs": "MACS?",
"mahw": "Hazardous Waste",

View File

@@ -1772,6 +1772,8 @@
"dms_make": "",
"dms_model": "",
"dms_model_override": "",
"make_override": "",
"advisor": "",
"dms_unsold": "",
"dms_wip_acctnumber": "",
"id": "",

View File

@@ -1772,6 +1772,8 @@
"dms_make": "",
"dms_model": "",
"dms_model_override": "",
"make_override": "",
"advisor": "",
"dms_unsold": "",
"dms_wip_acctnumber": "",
"id": "",