2
0
mirror of https://github.com/frappe/books.git synced 2024-11-13 00:46:28 +00:00
books/models/ledgerPosting/types.ts

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

28 lines
543 B
TypeScript
Raw Normal View History

import { Doc } from 'fyo/model/doc';
2022-04-14 04:27:48 +00:00
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';