2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00
books/models/ledgerPosting/types.ts
18alantom 9877bf4fd3 incr: simplify doc a bit
- allow nulls in converter else not not null'll fail
2022-05-23 16:18:22 +05:30

28 lines
543 B
TypeScript

import { Doc } from 'fyo/model/doc';
import Money from 'pesa/dist/types/src/money';
export interface LedgerPostingOptions {
reference: Doc;
party?: string;
date?: string;
description?: string;
}
export interface LedgerEntry {
account: string;
party: string;
date: string;
referenceType: string;
referenceName: string;
description?: string;
reverted: boolean;
debit: Money;
credit: Money;
}
export interface AccountEntry {
name: string;
balanceChange: Money;
}
export type TransactionType = 'credit' | 'debit';