2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 17:34:04 +00:00
books/models/Transactional/types.ts

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

26 lines
480 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;
}
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 interface AccountBalanceChange {
2022-04-14 04:27:48 +00:00
name: string;
change: Money;
2022-04-14 04:27:48 +00:00
}
export type TransactionType = 'credit' | 'debit';