purchase slice 1
This commit is contained in:
@@ -22,6 +22,8 @@ export interface PurchaseLineDto {
|
||||
unitOfMeasure: InventoryUnitOfMeasure;
|
||||
unitCost: number;
|
||||
lineTotal: number;
|
||||
receivedQuantity: number;
|
||||
remainingQuantity: number;
|
||||
position: number;
|
||||
}
|
||||
|
||||
@@ -57,6 +59,7 @@ export interface PurchaseOrderDetailDto extends PurchaseOrderSummaryDto {
|
||||
currencyCode: string | null;
|
||||
createdAt: string;
|
||||
lines: PurchaseLineDto[];
|
||||
receipts: PurchaseReceiptDto[];
|
||||
}
|
||||
|
||||
export interface PurchaseOrderInput {
|
||||
@@ -68,3 +71,44 @@ export interface PurchaseOrderInput {
|
||||
notes: string;
|
||||
lines: PurchaseLineInput[];
|
||||
}
|
||||
|
||||
export interface PurchaseReceiptLineDto {
|
||||
id: string;
|
||||
purchaseOrderLineId: string;
|
||||
itemId: string;
|
||||
itemSku: string;
|
||||
itemName: string;
|
||||
quantity: number;
|
||||
}
|
||||
|
||||
export interface PurchaseReceiptDto {
|
||||
id: string;
|
||||
receiptNumber: string;
|
||||
purchaseOrderId: string;
|
||||
receivedAt: string;
|
||||
notes: string;
|
||||
createdAt: string;
|
||||
createdByName: string;
|
||||
warehouseId: string;
|
||||
warehouseCode: string;
|
||||
warehouseName: string;
|
||||
locationId: string;
|
||||
locationCode: string;
|
||||
locationName: string;
|
||||
totalQuantity: number;
|
||||
lineCount: number;
|
||||
lines: PurchaseReceiptLineDto[];
|
||||
}
|
||||
|
||||
export interface PurchaseReceiptLineInput {
|
||||
purchaseOrderLineId: string;
|
||||
quantity: number;
|
||||
}
|
||||
|
||||
export interface PurchaseReceiptInput {
|
||||
receivedAt: string;
|
||||
warehouseId: string;
|
||||
locationId: string;
|
||||
notes: string;
|
||||
lines: PurchaseReceiptLineInput[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user