diff --git a/client/src/components/bill-form/bill-form.component.jsx b/client/src/components/bill-form/bill-form.component.jsx index f5e43c3d6..7f6374984 100644 --- a/client/src/components/bill-form/bill-form.component.jsx +++ b/client/src/components/bill-form/bill-form.component.jsx @@ -79,19 +79,19 @@ export function BillFormComponent({ }); }; - const handleFederalTaxExemptSwitchToggle = (checked) => { - // Early gate - if (!checked) return; - const values = form.getFieldsValue("billlines"); - // Gate bill lines - if (!values?.billlines?.length) return; + // const handleFederalTaxExemptSwitchToggle = (checked) => { + // // Early gate + // if (!checked) return; + // const values = form.getFieldsValue("billlines"); + // // Gate bill lines + // if (!values?.billlines?.length) return; - const billlines = values.billlines.map((b) => { - b.applicable_taxes.federal = false; - return b; - }); - form.setFieldsValue({ billlines }); - }; + // const billlines = values.billlines.map((b) => { + // b.applicable_taxes.federal = false; + // return b; + // }); + // form.setFieldsValue({ billlines }); + // }; useEffect(() => { if (job) form.validateFields(["is_credit_memo"]); 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 327417900..771b5888a 100644 --- a/client/src/components/bill-form/bill-form.lines.component.jsx +++ b/client/src/components/bill-form/bill-form.lines.component.jsx @@ -11,7 +11,6 @@ import { Switch, Table, Tooltip, - Tooltip, } from "antd"; import React from "react"; import { useTranslation } from "react-i18next";