feat: inventory adjustment service.

This commit is contained in:
a.bouhuolia
2021-01-09 21:56:09 +02:00
parent 30a7552b22
commit 4d9ff02b50
10 changed files with 498 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
type IAdjustmentTypes = 'increment' | 'decrement' | 'value_adjustment';
export interface IQuickInventoryAdjustmentDTO {
date: Date | string;
type: IAdjustmentTypes,
adjustmentAccountId: number;
reason: string;
description: string;
referenceNo: string;
itemId: number;
newQuantity: number;
newValue: number;
};
export interface IInventoryAdjustment {
id?: number,
date: Date | string;
adjustmentAccountId: number;
reason: string;
description: string;
referenceNo: string;
entries: IInventoryAdjustmentEntry[]
};
export interface IInventoryAdjustmentEntry {
id?: number,
adjustmentId?: number,
index: number,
itemId: number;
newQuantity: number;
newValue: number;
}
export interface IInventoryAdjustmentsFilter{
page: number,
pageSize: number,
};

View File

@@ -38,4 +38,5 @@ export * from './JournalReport';
export * from './AgingReport';
export * from './ARAgingSummaryReport';
export * from './APAgingSummaryReport';
export * from './Mailable';
export * from './Mailable';
export * from './InventoryAdjustment';