2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 19:39:07 +00:00
books/models/inventory/Point of Sale/OpeningAmounts.ts
2023-12-04 14:38:12 +05:30

12 lines
257 B
TypeScript

import { Doc } from 'fyo/model/doc';
import { Money } from 'pesa';
export class OpeningAmounts extends Doc {
amount?: Money;
paymentMethod?: 'Cash' | 'Transfer';
get openingCashAmount() {
return this.parentdoc?.openingCashAmount as Money;
}
}