2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00
books/models/Transactional/types.ts
18alantom 401a86eeeb chore: bump pesa
- fix isPesa impl
2022-05-23 16:18:23 +05:30

26 lines
463 B
TypeScript

import { Doc } from 'fyo/model/doc';
import { Money } from 'pesa';
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';