mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: Concurrency control items cost compute.
This commit is contained in:
7
server/src/interfaces/IItem.ts
Normal file
7
server/src/interfaces/IItem.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
export interface IItem{
|
||||
id: number,
|
||||
name: string,
|
||||
type: string,
|
||||
}
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
interface IInventoryCostMethod {
|
||||
computeItemsCost(fromDate: Date): void,
|
||||
initialize(): void,
|
||||
storeInventoryLotsCost(transactions: any[]): void,
|
||||
}
|
||||
14
server/src/interfaces/ItemEntry.ts
Normal file
14
server/src/interfaces/ItemEntry.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
export interface IItemEntry {
|
||||
referenceType: string,
|
||||
referenceId: number,
|
||||
|
||||
index: number,
|
||||
|
||||
itemId: number,
|
||||
description: string,
|
||||
discount: number,
|
||||
quantity: number,
|
||||
rate: number,
|
||||
}
|
||||
8
server/src/interfaces/SaleInvoice.ts
Normal file
8
server/src/interfaces/SaleInvoice.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
export interface ISaleInvoice {
|
||||
id: number,
|
||||
balance: number,
|
||||
invoiceDate: Date,
|
||||
entries: [],
|
||||
}
|
||||
@@ -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,
|
||||
};
|
||||
Reference in New Issue
Block a user