IO-3515 Retain discount application when AI vendor added.
This commit is contained in:
@@ -52,6 +52,7 @@ export function BillFormComponent({
|
|||||||
const [discount, setDiscount] = useState(0);
|
const [discount, setDiscount] = useState(0);
|
||||||
const notification = useNotification();
|
const notification = useNotification();
|
||||||
const jobIdFormWatch = Form.useWatch("jobid", form);
|
const jobIdFormWatch = Form.useWatch("jobid", form);
|
||||||
|
const vendorIdFormWatch = Form.useWatch("vendorid", form);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
treatments: { Extended_Bill_Posting, ClosingPeriod }
|
treatments: { Extended_Bill_Posting, ClosingPeriod }
|
||||||
@@ -118,6 +119,7 @@ export function BillFormComponent({
|
|||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
form,
|
form,
|
||||||
|
vendorIdFormWatch,
|
||||||
billEdit,
|
billEdit,
|
||||||
loadOutstandingReturns,
|
loadOutstandingReturns,
|
||||||
loadInventory,
|
loadInventory,
|
||||||
|
|||||||
Reference in New Issue
Block a user