mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
401a86eeeb
- fix isPesa impl
26 lines
463 B
TypeScript
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';
|