Fix GRN UI

This commit is contained in:
2026-10-08 10:40:43 +05:30
parent 9908a552d1
commit 40e890d4ff
9 changed files with 901 additions and 711 deletions
+12
View File
@@ -77,6 +77,13 @@ export interface GrnItemBody {
batches?: GrnBatchLineBody[]
/** Only for items with TracksSerialNumbers — exactly acceptedQuantity entries. */
serialNumbers?: string[]
/** Cost per base-UOM unit. Omitted on a PO line falls back to the PO line's cost. */
unitCost?: number
/** Omitted falls back to the GRN-wide percentage. */
discountPercent?: number
vatPercent?: number
/** Free-issue units: stocked but not costed. Serials/batches must cover accepted + free. */
freeQuantity?: number
}
export interface GrnBody {
@@ -84,6 +91,9 @@ export interface GrnBody {
warehouseId: string
receivedAt: string
items: GrnItemBody[]
/** GRN-wide defaults for lines that don't set their own. */
discountPercent?: number
vatPercent?: number
// TEMPORARY: required while auth doesn't resolve a logged-in user server-side — see testbug.md #28.
receivedByUserId: string
}
@@ -92,6 +102,8 @@ export interface DirectGrnBody {
warehouseId: string
supplierId?: string
items: GrnItemBody[]
discountPercent?: number
vatPercent?: number
// TEMPORARY: required while auth doesn't resolve a logged-in user server-side — see testbug.md #28.
receivedByUserId: string
}