feat: compute items cost of inventory adjustments transcations.

This commit is contained in:
a.bouhuolia
2021-01-10 17:41:32 +02:00
parent 097b9fdb3a
commit 8491d44118
20 changed files with 433 additions and 180 deletions

View File

@@ -3,14 +3,14 @@ export type TInventoryTransactionDirection = 'IN' | 'OUT';
export interface IInventoryTransaction {
id?: number,
date: Date,
date: Date|string,
direction: TInventoryTransactionDirection,
itemId: number,
quantity: number,
rate: number,
transactionType: string,
transactionId: number,
lotNumber: string,
lotNumber: number,
entryId: number,
createdAt?: Date,
updatedAt?: Date,
@@ -25,7 +25,7 @@ export interface IInventoryLotCost {
rate: number,
remaining: number,
cost: number,
lotNumber: string|number,
lotNumber: number,
transactionType: string,
transactionId: number,
entryId: number