mirror of
https://github.com/frappe/books.git
synced 2025-01-24 15:48:25 +00:00
ae6a5e52f2
- move getExchangeRate to helpers - add git blame ignore
28 lines
539 B
TypeScript
28 lines
539 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';
|