2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00
books/models/Transactional/types.ts
18alantom 20ea214a4b incr: abstract away transactional
- add deletion
- fix reversion
2022-05-23 16:18:22 +05:30

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';