test(po): fix intent type in TCS/Discount test (updatePo uses "save")
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
78afcb610b
commit
c67155f5d9
1 changed files with 3 additions and 2 deletions
|
|
@ -47,11 +47,12 @@ function as(userId: string, role: Role) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// One line item: 10 × ₹100 @ 18% GST ⇒ taxable 1000, GST 180, incl-GST 1180.
|
// One line item: 10 × ₹100 @ 18% GST ⇒ taxable 1000, GST 180, incl-GST 1180.
|
||||||
function form(title: string, intent: "draft" | "submit", tcs: number, discount: number) {
|
function form(title: string, intent: string, tcs: number, discount: number) {
|
||||||
const f = makePoForm({
|
const f = makePoForm({
|
||||||
title, vesselId, accountId, intent,
|
title, vesselId, accountId, intent: "draft",
|
||||||
lineItems: [{ description: "Item", quantity: 10, unit: "pc", unitPrice: 100, gstRate: 0.18 }],
|
lineItems: [{ description: "Item", quantity: 10, unit: "pc", unitPrice: 100, gstRate: 0.18 }],
|
||||||
});
|
});
|
||||||
|
f.set("intent", intent); // create: draft/submit · edit: save
|
||||||
f.set("tcsAmount", String(tcs));
|
f.set("tcsAmount", String(tcs));
|
||||||
f.set("discountAmount", String(discount));
|
f.set("discountAmount", String(discount));
|
||||||
return f;
|
return f;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue