2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +00:00
books/models/Transactional/types.ts
2022-11-06 23:55:22 -08:00

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