2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00

incr: pos shift models

This commit is contained in:
akshayitzme 2023-08-22 18:30:24 +05:30 committed by akshayitzme
parent 218547269d
commit 79ef11bb23
3 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,5 @@
import { CashDenominations } from './CashDenominations';
export class ClosingCash extends CashDenominations {}
export class ClosingCash extends CashDenominations {
count?: number;
}

View File

@ -4,4 +4,8 @@ import { Money } from 'pesa';
export class OpeningAmounts extends Doc {
amount?: Money;
paymentMethod?: 'Cash' | 'Transfer';
get openingCashAmount() {
return this.parentdoc?.openingCashAmount as Money;
}
}

View File

@ -5,13 +5,13 @@ import { OpeningAmounts } from './OpeningAmounts';
import { OpeningCash } from './OpeningCash';
export class POSShift extends Doc {
closingAmounts?: ClosingAmounts[];
closingCash?: ClosingCash[];
closingDate?: Date;
isShiftOpen?: boolean;
openingAmounts?: OpeningAmounts[];
openingCash?: OpeningCash[];
openingDate?: Date;
closingDate?: Date;
openingAmounts?: OpeningAmounts[];
closingAmounts?: ClosingAmounts[];
openingCash?: OpeningCash[];
closingCash?: ClosingCash[];
get openingCashAmount() {
if (!this.openingCash) {