WIP: Allocate landed cost.

This commit is contained in:
a.bouhuolia
2021-07-24 03:10:32 +02:00
parent 70aea9bf2d
commit cf2ebe9597
30 changed files with 602 additions and 218 deletions

View File

@@ -0,0 +1,18 @@
export interface ICommonEntry {
id: number;
amount: number;
}
export interface ICommonLandedCostEntry extends ICommonEntry {
landedCost: boolean;
allocatedCostAmount: number;
}
export interface ICommonEntryDTO {
id?: number;
amount: number;
}
export interface ICommonLandedCostEntryDTO extends ICommonEntryDTO {
landedCost?: boolean;
}

View File

@@ -40,6 +40,9 @@ export interface IExpenseCategory {
description: string;
expenseId: number;
amount: number;
allocatedCostAmount: number;
unallocatedCostAmount: number;
landedCost: boolean;
}
@@ -57,8 +60,10 @@ export interface IExpenseDTO {
}
export interface IExpenseCategoryDTO {
id?: number;
expenseAccountId: number;
index: number;
amount: number;
description?: string;
expenseId: number;
landedCost?: boolean;

View File

@@ -1,26 +1,29 @@
export type IItemEntryTransactionType = 'SaleInvoice' | 'Bill' | 'SaleReceipt';
export interface IItemEntry {
id?: number,
id?: number;
referenceType: string,
referenceId: number,
referenceType: string;
referenceId: number;
index: number,
index: number;
itemId: number,
description: string,
discount: number,
quantity: number,
rate: number,
itemId: number;
description: string;
discount: number;
quantity: number;
rate: number;
amount: number;
sellAccountId: number,
costAccountId: number,
landedCost: number;
allocatedCostAmount: number;
unallocatedCostAmount: number;
landedCost?: boolean,
sellAccountId: number;
costAccountId: number;
}
export interface IItemEntryDTO {
landedCost?: boolean
}
id?: number,
landedCost?: boolean;
}

View File

@@ -64,7 +64,10 @@ export interface ILandedCostTransactionEntry {
name: string;
code: string;
amount: number;
unallocatedCostAmount: number;
allocatedCostAmount: number;
description: string;
costAccountId: number;
}
interface ILandedCostEntry {
@@ -83,7 +86,7 @@ export interface IBillLandedCostTransaction {
costAccountId: number,
description: string;
allocatedEntries?: IBillLandedCostTransactionEntry[],
allocateEntries?: IBillLandedCostTransactionEntry[],
};
export interface IBillLandedCostTransactionEntry {

View File

@@ -54,6 +54,7 @@ export * from './Ledger';
export * from './CashFlow';
export * from './InventoryDetails';
export * from './LandedCost';
export * from './Entry';
export interface I18nService {
__: (input: string) => string;