2022-04-24 06:48:44 +00:00
|
|
|
import { Doc } from 'fyo/model/doc';
|
2022-04-14 04:27:48 +00:00
|
|
|
import Money from 'pesa/dist/types/src/money';
|
|
|
|
|
|
|
|
export interface LedgerPostingOptions {
|
|
|
|
reference: Doc;
|
|
|
|
party?: string;
|
|
|
|
}
|
2022-05-03 13:13:47 +00:00
|
|
|
|
2022-04-14 04:27:48 +00:00
|
|
|
export interface LedgerEntry {
|
|
|
|
account: string;
|
|
|
|
party: string;
|
|
|
|
date: string;
|
|
|
|
referenceType: string;
|
|
|
|
referenceName: string;
|
|
|
|
reverted: boolean;
|
|
|
|
debit: Money;
|
|
|
|
credit: Money;
|
|
|
|
}
|
|
|
|
|
2022-05-03 13:13:47 +00:00
|
|
|
export interface AccountBalanceChange {
|
2022-04-14 04:27:48 +00:00
|
|
|
name: string;
|
2022-05-03 13:13:47 +00:00
|
|
|
change: Money;
|
2022-04-14 04:27:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export type TransactionType = 'credit' | 'debit';
|