mirror of
https://github.com/frappe/books.git
synced 2024-11-09 23:30:56 +00:00
incr: pos shift models
This commit is contained in:
parent
218547269d
commit
79ef11bb23
@ -1,3 +1,5 @@
|
||||
import { CashDenominations } from './CashDenominations';
|
||||
|
||||
export class ClosingCash extends CashDenominations {}
|
||||
export class ClosingCash extends CashDenominations {
|
||||
count?: number;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user