test(po): fix intent type in TCS/Discount test (updatePo uses "save")
All checks were successful
PR checks / checks (pull_request) Successful in 54s
PR checks / integration (pull_request) Successful in 32s

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hardik 2026-06-29 14:52:53 +05:30
parent 78afcb610b
commit c67155f5d9

View file

@ -47,11 +47,12 @@ function as(userId: string, role: Role) {
}
// 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({
title, vesselId, accountId, intent,
title, vesselId, accountId, intent: "draft",
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("discountAmount", String(discount));
return f;