Settle Options are now stored in the Database and can be updated
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
export interface ReceivePaymentItem {
|
||||
id: number;
|
||||
name: string;
|
||||
import { SettleOption } from './settle-option';
|
||||
|
||||
export interface ReceivePaymentItem extends SettleOption {
|
||||
amount: number;
|
||||
}
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
import { ReceivePaymentItem } from './receive-payment-item';
|
||||
|
||||
export interface ReceivePaymentList {
|
||||
[billType: string]: ReceivePaymentItem[];
|
||||
}
|
||||
5
bookie/src/app/core/reporting-level.ts
Normal file
5
bookie/src/app/core/reporting-level.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export enum ReportingLevel {
|
||||
Skip = 0,
|
||||
Aggregate = 1,
|
||||
Detailed = 2,
|
||||
}
|
||||
22
bookie/src/app/core/settle-option.ts
Normal file
22
bookie/src/app/core/settle-option.ts
Normal file
@ -0,0 +1,22 @@
|
||||
import { VoucherType } from '../sales/bills/voucher-type';
|
||||
|
||||
import { ReportingLevel } from './reporting-level';
|
||||
|
||||
export class SettleOption {
|
||||
id: number;
|
||||
name: string;
|
||||
voucherType: VoucherType;
|
||||
reportingLevel: ReportingLevel;
|
||||
hasReason: boolean;
|
||||
isFixture: boolean;
|
||||
|
||||
public constructor(init?: Partial<SettleOption>) {
|
||||
this.id = 0;
|
||||
this.name = '';
|
||||
this.voucherType = VoucherType.Kot;
|
||||
this.reportingLevel = ReportingLevel.Skip;
|
||||
this.hasReason = false;
|
||||
this.isFixture = false;
|
||||
Object.assign(this, init);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user