mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: Graph fetch relations with sales & purchases models.
feat: Inventory tracker algorithm lots with FIFO or LIFO cost method.
This commit is contained in:
23
server/src/interfaces/InventoryTransaction.ts
Normal file
23
server/src/interfaces/InventoryTransaction.ts
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user