mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat: compute items cost of inventory adjustments transcations.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
type IAdjustmentTypes = 'increment' | 'decrement' | 'value_adjustment';
|
||||
type IAdjustmentTypes = 'increment' | 'decrement';
|
||||
|
||||
export interface IQuickInventoryAdjustmentDTO {
|
||||
date: Date | string;
|
||||
@@ -20,6 +20,7 @@ export interface IInventoryAdjustment {
|
||||
reason: string;
|
||||
description: string;
|
||||
referenceNo: string;
|
||||
inventoryDirection?: 'IN' | 'OUT',
|
||||
entries: IInventoryAdjustmentEntry[];
|
||||
userId: number;
|
||||
};
|
||||
|
||||
@@ -3,14 +3,14 @@ export type TInventoryTransactionDirection = 'IN' | 'OUT';
|
||||
|
||||
export interface IInventoryTransaction {
|
||||
id?: number,
|
||||
date: Date,
|
||||
date: Date|string,
|
||||
direction: TInventoryTransactionDirection,
|
||||
itemId: number,
|
||||
quantity: number,
|
||||
rate: number,
|
||||
transactionType: string,
|
||||
transactionId: number,
|
||||
lotNumber: string,
|
||||
lotNumber: number,
|
||||
entryId: number,
|
||||
createdAt?: Date,
|
||||
updatedAt?: Date,
|
||||
@@ -25,7 +25,7 @@ export interface IInventoryLotCost {
|
||||
rate: number,
|
||||
remaining: number,
|
||||
cost: number,
|
||||
lotNumber: string|number,
|
||||
lotNumber: number,
|
||||
transactionType: string,
|
||||
transactionId: number,
|
||||
entryId: number
|
||||
|
||||
@@ -22,10 +22,6 @@ export interface IItem{
|
||||
|
||||
quantityOnHand: number,
|
||||
|
||||
openingQuantity: number,
|
||||
openingCost: number,
|
||||
openingDate: Date,
|
||||
|
||||
note: string,
|
||||
active: boolean,
|
||||
|
||||
@@ -58,10 +54,6 @@ export interface IItemDTO {
|
||||
|
||||
quantityOnHand: number,
|
||||
|
||||
openingQuantity?: number,
|
||||
openingCost?: number,
|
||||
openingDate?: Date,
|
||||
|
||||
note: string,
|
||||
active: boolean,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user