IO-3515 Retain discount application when AI vendor added.

This commit is contained in:
Patrick Fic
2026-03-30 11:59:08 -07:00
parent c2d8d78e0a
commit 1ea7798eeb

View File

@@ -52,6 +52,7 @@ export function BillFormComponent({
const [discount, setDiscount] = useState(0);
const notification = useNotification();
const jobIdFormWatch = Form.useWatch("jobid", form);
const vendorIdFormWatch = Form.useWatch("vendorid", form);
const {
treatments: { Extended_Bill_Posting, ClosingPeriod }
@@ -118,6 +119,7 @@ export function BillFormComponent({
}
}, [
form,
vendorIdFormWatch,
billEdit,
loadOutstandingReturns,
loadInventory,