fix: Graph fetch relations with sales & purchases models.

feat: Inventory tracker algorithm lots with FIFO or LIFO cost method.
This commit is contained in:
Ahmed Bouhuolia
2020-08-11 01:00:33 +02:00
parent 8d4b3f1ab3
commit 42569c89e4
25 changed files with 526 additions and 93 deletions

View File

@@ -0,0 +1,23 @@
export interface IInventoryTransaction {
id?: number,
date: Date,
direction: string,
itemId: number,
quantity: number,
rate: number,
transactionType: string,
transactionId: string,
};
export interface IInventoryLotCost {
id?: number,
date: Date,
direction: string,
itemId: number,
rate: number,
remaining: number,
transactionType: string,
transactionId: string,
}