2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 03:29:00 +00:00
books/models/Transactional/types.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
387 B
TypeScript
Raw Normal View History

import { Doc } from 'fyo/model/doc';
2022-05-23 05:30:54 +00:00
import { Money } from 'pesa';
2022-04-14 04:27:48 +00:00
export interface LedgerPostingOptions {
reference: Doc;
party?: string;
}
2022-04-14 04:27:48 +00:00
export interface LedgerEntry {
account: string;
party: string;
date: string;
referenceType: string;
referenceName: string;
reverted: boolean;
debit: Money;
credit: Money;
}
export type TransactionType = 'credit' | 'debit';