mirror of
https://github.com/frappe/books.git
synced 2024-11-14 09:24:04 +00:00
20ea214a4b
- add deletion - fix reversion
26 lines
480 B
TypeScript
26 lines
480 B
TypeScript
import { Doc } from 'fyo/model/doc';
|
|
import Money from 'pesa/dist/types/src/money';
|
|
|
|
export interface LedgerPostingOptions {
|
|
reference: Doc;
|
|
party?: string;
|
|
}
|
|
|
|
export interface LedgerEntry {
|
|
account: string;
|
|
party: string;
|
|
date: string;
|
|
referenceType: string;
|
|
referenceName: string;
|
|
reverted: boolean;
|
|
debit: Money;
|
|
credit: Money;
|
|
}
|
|
|
|
export interface AccountBalanceChange {
|
|
name: string;
|
|
change: Money;
|
|
}
|
|
|
|
export type TransactionType = 'credit' | 'debit';
|