diff --git a/client/src/components/bill-form/bill-form.lines.component.jsx b/client/src/components/bill-form/bill-form.lines.component.jsx index b9c41074c..541608ec4 100644 --- a/client/src/components/bill-form/bill-form.lines.component.jsx +++ b/client/src/components/bill-form/bill-form.lines.component.jsx @@ -96,6 +96,7 @@ export function BillEnterModalLinesComponent({ // Only fill actual_cost when the user forward-tabs out of Retail (actual_price) const autofillActualCost = (index) => { + if (bodyshop.accountingconfig?.disableBillCostCalculation) return; Promise.resolve().then(() => { const retailRaw = form.getFieldValue(["billlines", index, "actual_price"]); const actualRaw = form.getFieldValue(["billlines", index, "actual_cost"]); diff --git a/client/src/components/shop-employees/shop-employees-form.component.jsx b/client/src/components/shop-employees/shop-employees-form.component.jsx index 59a5b7e9f..e5bfbde23 100644 --- a/client/src/components/shop-employees/shop-employees-form.component.jsx +++ b/client/src/components/shop-employees/shop-employees-form.component.jsx @@ -316,9 +316,8 @@ export function ShopEmployeesFormComponent({ bodyshop }) { + , + + ] : []), diff --git a/client/src/components/vendors-form/vendors-form.component.jsx b/client/src/components/vendors-form/vendors-form.component.jsx index 547ff9a2a..ddd9b93d8 100644 --- a/client/src/components/vendors-form/vendors-form.component.jsx +++ b/client/src/components/vendors-form/vendors-form.component.jsx @@ -152,7 +152,7 @@ export function VendorsFormComponent({ bodyshop, form, formLoading, handleDelete {!isPartsEntry && ( <> - + diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index a79bf0edd..76e55c8f3 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -339,6 +339,7 @@ "require_actual_delivery_date": "Require Actual Delivery", "templates": "Delivery Templates" }, + "disableBillCostCalculation": "Disable Automatic Bill Cost Calculation", "dms": { "apcontrol": "AP Control Number", "appostingaccount": "AP Posting Account", diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index e1061fb2e..683e1d5b8 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -339,6 +339,7 @@ "require_actual_delivery_date": "", "templates": "" }, + "disableBillCostCalculation": "", "dms": { "apcontrol": "", "appostingaccount": "", diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index b4b37cf62..7ca765876 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -339,6 +339,7 @@ "require_actual_delivery_date": "", "templates": "" }, + "disableBillCostCalculation": "", "dms": { "apcontrol": "", "appostingaccount": "",