mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
WIP: Allocate landed cost.
This commit is contained in:
18
server/src/interfaces/Entry.ts
Normal file
18
server/src/interfaces/Entry.ts
Normal 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;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user