2
0
mirror of https://github.com/frappe/books.git synced 2025-01-05 08:02:15 +00:00
books/models/inventory/Point of Sale/OpeningAmounts.ts

12 lines
257 B
TypeScript
Raw Normal View History

2023-08-22 06:48:51 +00:00
import { Doc } from 'fyo/model/doc';
import { Money } from 'pesa';
export class OpeningAmounts extends Doc {
amount?: Money;
paymentMethod?: 'Cash' | 'Transfer';
2023-08-22 13:00:24 +00:00
get openingCashAmount() {
return this.parentdoc?.openingCashAmount as Money;
}
2023-08-22 06:48:51 +00:00
}