mirror of
https://github.com/frappe/books.git
synced 2024-11-13 00:46:28 +00:00
incr: pos shift models
This commit is contained in:
parent
218547269d
commit
79ef11bb23
@ -1,3 +1,5 @@
|
|||||||
import { CashDenominations } from './CashDenominations';
|
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 {
|
export class OpeningAmounts extends Doc {
|
||||||
amount?: Money;
|
amount?: Money;
|
||||||
paymentMethod?: 'Cash' | 'Transfer';
|
paymentMethod?: 'Cash' | 'Transfer';
|
||||||
|
|
||||||
|
get openingCashAmount() {
|
||||||
|
return this.parentdoc?.openingCashAmount as Money;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,13 +5,13 @@ import { OpeningAmounts } from './OpeningAmounts';
|
|||||||
import { OpeningCash } from './OpeningCash';
|
import { OpeningCash } from './OpeningCash';
|
||||||
|
|
||||||
export class POSShift extends Doc {
|
export class POSShift extends Doc {
|
||||||
closingAmounts?: ClosingAmounts[];
|
|
||||||
closingCash?: ClosingCash[];
|
|
||||||
closingDate?: Date;
|
|
||||||
isShiftOpen?: boolean;
|
isShiftOpen?: boolean;
|
||||||
openingAmounts?: OpeningAmounts[];
|
|
||||||
openingCash?: OpeningCash[];
|
|
||||||
openingDate?: Date;
|
openingDate?: Date;
|
||||||
|
closingDate?: Date;
|
||||||
|
openingAmounts?: OpeningAmounts[];
|
||||||
|
closingAmounts?: ClosingAmounts[];
|
||||||
|
openingCash?: OpeningCash[];
|
||||||
|
closingCash?: ClosingCash[];
|
||||||
|
|
||||||
get openingCashAmount() {
|
get openingCashAmount() {
|
||||||
if (!this.openingCash) {
|
if (!this.openingCash) {
|
||||||
|
Loading…
Reference in New Issue
Block a user