Settle Options are now stored in the Database and can be updated

This commit is contained in:
2020-12-13 09:44:32 +05:30
parent d65379a068
commit 27aa4d12a6
72 changed files with 1326 additions and 551 deletions

View File

@ -1,5 +1,5 @@
export interface ReceivePaymentItem {
id: number;
name: string;
import { SettleOption } from './settle-option';
export interface ReceivePaymentItem extends SettleOption {
amount: number;
}

View File

@ -1,5 +0,0 @@
import { ReceivePaymentItem } from './receive-payment-item';
export interface ReceivePaymentList {
[billType: string]: ReceivePaymentItem[];
}

View File

@ -0,0 +1,5 @@
export enum ReportingLevel {
Skip = 0,
Aggregate = 1,
Detailed = 2,
}

View 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);
}
}