feat: Concurrency control items cost compute.

This commit is contained in:
Ahmed Bouhuolia
2020-08-23 23:38:42 +02:00
parent 45088b2d3b
commit ab6bc0517f
28 changed files with 463 additions and 341 deletions

View File

@@ -0,0 +1,7 @@
export interface IItem{
id: number,
name: string,
type: string,
}

View File

@@ -2,5 +2,5 @@
interface IInventoryCostMethod {
computeItemsCost(fromDate: Date): void,
initialize(): void,
storeInventoryLotsCost(transactions: any[]): void,
}

View File

@@ -0,0 +1,14 @@
export interface IItemEntry {
referenceType: string,
referenceId: number,
index: number,
itemId: number,
description: string,
discount: number,
quantity: number,
rate: number,
}

View File

@@ -0,0 +1,8 @@
export interface ISaleInvoice {
id: number,
balance: number,
invoiceDate: Date,
entries: [],
}

View File

@@ -1,6 +1,8 @@
import { IInventoryTransaction, IInventoryLotCost } from './InventoryTransaction';
import { IBillPaymentEntry, IBillPayment } from './BillPayment';
import { IInventoryCostMethod } from './IInventoryCostMethod';
import { IItemEntry } from './ItemEntry';
import { IItem } from './Item';
export {
IBillPaymentEntry,
@@ -8,4 +10,6 @@ export {
IInventoryTransaction,
IInventoryLotCost,
IInventoryCostMethod,
IItemEntry
IItem,
};