mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: Re-compute the given items cost job.
feat: Optimize the architecture.
This commit is contained in:
6
server/src/interfaces/InventoryCostMethod.ts
Normal file
6
server/src/interfaces/InventoryCostMethod.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
interface IInventoryCostMethod {
|
||||
computeItemsCost(fromDate: Date): void,
|
||||
initialize(): void,
|
||||
}
|
||||
@@ -18,6 +18,7 @@ export interface IInventoryLotCost {
|
||||
itemId: number,
|
||||
rate: number,
|
||||
remaining: number,
|
||||
lotNumber: string|number,
|
||||
transactionType: string,
|
||||
transactionId: string,
|
||||
}
|
||||
11
server/src/interfaces/index.ts
Normal file
11
server/src/interfaces/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { IInventoryTransaction, IInventoryLotCost } from './InventoryTransaction';
|
||||
import { IBillPaymentEntry, IBillPayment } from './BillPayment';
|
||||
import { IInventoryCostMethod } from './IInventoryCostMethod';
|
||||
|
||||
export {
|
||||
IBillPaymentEntry,
|
||||
IBillPayment,
|
||||
IInventoryTransaction,
|
||||
IInventoryLotCost,
|
||||
IInventoryCostMethod,
|
||||
};
|
||||
Reference in New Issue
Block a user