diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 2f473b634..b4ef3cc78 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -29597,6 +29597,27 @@ + + cieca_pfo + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + closeconfirm false diff --git a/client/src/components/bill-form/bill-form.component.jsx b/client/src/components/bill-form/bill-form.component.jsx index 0fa28359a..6675990b0 100644 --- a/client/src/components/bill-form/bill-form.component.jsx +++ b/client/src/components/bill-form/bill-form.component.jsx @@ -364,13 +364,15 @@ export function BillFormComponent({ )} - - - + { + // + // + // + } - - - + { + // + // + // + } {() => { const values = form.getFieldsValue([ @@ -410,21 +414,25 @@ export function BillFormComponent({ value={totals.subtotal.toFormat()} precision={2} /> - + { + // + } - + { + // + } ), }, - { - title: t("billlines.fields.federal_tax_applicable"), - dataIndex: "applicable_taxes.federal", - editable: true, + // { + // title: t("billlines.fields.federal_tax_applicable"), + // dataIndex: "applicable_taxes.federal", + // editable: true, - formItemProps: (field) => { - return { - key: `${field.index}fedtax`, - valuePropName: "checked", - // initialValue: true, - name: [field.name, "applicable_taxes", "federal"], - }; - }, - formInput: (record, index) => , - }, + // formItemProps: (field) => { + // return { + // key: `${field.index}fedtax`, + // valuePropName: "checked", + // // initialValue: true, + // name: [field.name, "applicable_taxes", "federal"], + // }; + // }, + // formInput: (record, index) => , + // }, { title: t("billlines.fields.state_tax_applicable"), dataIndex: "applicable_taxes.state", @@ -487,20 +487,20 @@ export function BillEnterModalLinesComponent({ }, formInput: (record, index) => , }, - { - title: t("billlines.fields.local_tax_applicable"), - dataIndex: "applicable_taxes.local", - editable: true, + // { + // title: t("billlines.fields.local_tax_applicable"), + // dataIndex: "applicable_taxes.local", + // editable: true, - formItemProps: (field) => { - return { - key: `${field.index}localtax`, - valuePropName: "checked", - name: [field.name, "applicable_taxes", "local"], - }; - }, - formInput: (record, index) => , - }, + // formItemProps: (field) => { + // return { + // key: `${field.index}localtax`, + // valuePropName: "checked", + // name: [field.name, "applicable_taxes", "local"], + // }; + // }, + // formInput: (record, index) => , + // }, { title: t("general.labels.actions"), diff --git a/client/src/components/job-totals-table/job-totals.table.totals.component.jsx b/client/src/components/job-totals-table/job-totals.table.totals.component.jsx index c0ff1f5b6..8b0106c7a 100644 --- a/client/src/components/job-totals-table/job-totals.table.totals.component.jsx +++ b/client/src/components/job-totals-table/job-totals.table.totals.component.jsx @@ -32,23 +32,33 @@ export function JobTotalsTableTotals({ bodyshop, job }) { ...(job.job_totals.totals.us_sales_tax_breakdown ? [ { - key: bodyshop.md_responsibility_centers.taxes.tax_ty1.tax_type1, + key: + bodyshop.md_responsibility_centers.taxes.tax_ty1?.tax_type1 || + "T1", total: job.job_totals.totals.us_sales_tax_breakdown.ty1Tax, }, { - key: bodyshop.md_responsibility_centers.taxes.tax_ty2.tax_type2, + key: + bodyshop.md_responsibility_centers.taxes.tax_ty2?.tax_type2 || + "T2", total: job.job_totals.totals.us_sales_tax_breakdown.ty2Tax, }, { - key: bodyshop.md_responsibility_centers.taxes.tax_ty3.tax_type3, + key: + bodyshop.md_responsibility_centers.taxes.tax_ty3?.tax_type3 || + "T3", total: job.job_totals.totals.us_sales_tax_breakdown.ty3Tax, }, { - key: bodyshop.md_responsibility_centers.taxes.tax_ty4.tax_type4, + key: + bodyshop.md_responsibility_centers.taxes.tax_ty4?.tax_type4 || + "T4", total: job.job_totals.totals.us_sales_tax_breakdown.ty4Tax, }, { - key: bodyshop.md_responsibility_centers.taxes.tax_ty5.tax_type5, + key: + bodyshop.md_responsibility_centers.taxes.tax_ty5?.tax_type5 || + "T5", total: job.job_totals.totals.us_sales_tax_breakdown.ty5Tax, }, ] @@ -67,10 +77,10 @@ export function JobTotalsTableTotals({ bodyshop, job }) { key: t("jobs.fields.ded_amt"), total: job.job_totals.totals.custPayable.deductible, }, - { - key: t("jobs.fields.federal_tax_payable"), - total: job.job_totals.totals.custPayable.federal_tax, - }, + // { + // key: t("jobs.fields.federal_tax_payable"), + // total: job.job_totals.totals.custPayable.federal_tax, + // }, { key: t("jobs.fields.other_amount_payable"), total: job.job_totals.totals.custPayable.other_customer_amount, diff --git a/client/src/components/jobs-create-jobs-info/jobs-create-jobs-info.component.jsx b/client/src/components/jobs-create-jobs-info/jobs-create-jobs-info.component.jsx index 2bf230b27..679c85283 100644 --- a/client/src/components/jobs-create-jobs-info/jobs-create-jobs-info.component.jsx +++ b/client/src/components/jobs-create-jobs-info/jobs-create-jobs-info.component.jsx @@ -1,4 +1,4 @@ -import { Collapse, Form, Input, InputNumber, Select, Switch } from "antd"; +import { Collapse, Form, Input, Select, Switch } from "antd"; import React from "react"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; @@ -258,26 +258,28 @@ export function JobsCreateJobsInfo({ bodyshop, form, selected }) { - - - - - - - - - - - + { + // + // + // + // + // + // + // + // + // + // + // + } diff --git a/client/src/components/jobs-detail-rates/jobs-detail-rates.component.jsx b/client/src/components/jobs-detail-rates/jobs-detail-rates.component.jsx index 53fbdce09..eaf9e8d49 100644 --- a/client/src/components/jobs-detail-rates/jobs-detail-rates.component.jsx +++ b/client/src/components/jobs-detail-rates/jobs-detail-rates.component.jsx @@ -1,28 +1,19 @@ -import { - Divider, - Form, - Input, - InputNumber, - Select, - Space, - Switch, - Tooltip, -} from "antd"; +import { Divider, Form, Input, Select, Space, Switch, Tooltip } from "antd"; import React from "react"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; import { selectJobReadOnly } from "../../redux/application/application.selectors"; import { selectBodyshop } from "../../redux/user/user.selectors"; -import CABCpvrtCalculator from "../ca-bc-pvrt-calculator/ca-bc-pvrt-calculator.component"; + import CurrencyInput from "../form-items-formatted/currency-form-item.component"; import JobsDetailRatesChangeButton from "../jobs-detail-rates-change-button/jobs-detail-rates-change-button.component"; import JobsMarkPstExempt from "../jobs-mark-pst-exempt/jobs-mark-pst-exempt.component"; import FormRow from "../layout-form-row/layout-form-row.component"; -import JobsDetailRatesParts from "./jobs-detail-rates.parts.component"; import JobsDetailRatesLabor from "./jobs-detail-rates.labor.component"; import JobsDetailRatesMaterials from "./jobs-detail-rates.materials.component"; import JobsDetailRatesOther from "./jobs-detail-rates.other.component"; +import JobsDetailRatesParts from "./jobs-detail-rates.parts.component"; const mapStateToProps = createStructuredSelector({ jobRO: selectJobReadOnly, @@ -87,14 +78,7 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) { > - {bodyshop.region_config === "CA_BC" && ( - - - - - - - )} + - - - - - - - - - - - {bodyshop.region_config.toLowerCase().startsWith("ca") && ( - - - - )} - + - + - + - + - - - + { + // + // + // + } - - - + { + // + // + // + } - - - - - {/* - - */} - {/* - - */} - - - - - - - {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( - - - - )} - - - - + { + // + // + // + // + // {/* + // + // */} + // {/* + // + // */} + // + // + // + // + // + // + // {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( + // + // + // + // )} + // + // + // + // + } {DmsAp.treatment === "on" && ( )} - - - - - {/* - - - - - */} - - - - - - - {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( - - - - )} - - - - + { + // + // + // + // + // {/* + // + // + // + // + // */} + // + // + // + // + // + // + // {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( + // + // + // + // )} + // + // + // + // + } - - - - - {/* - - - - - */} - - - - - - - {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( - - - - )} - - - - + { + // + // + // + // + // {/* + // + // + // + // + // */} + // + // + // + // + // + // + // {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( + // + // + // + // )} + // + // + // + // + } AR} id="AR"> {/*