mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
21 lines
387 B
TypeScript
21 lines
387 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 type TransactionType = 'credit' | 'debit';
|