Fix: import script to fit the new structure of voucher table (is_printed field removed, voucher_type != KOT is now assumed to be printed)

Fix: Take-away bill type is now removed
Fix: Table overview now shows the right amounts
Voucher Save and Update should now work
Discounts now working (permissions are not checked)
This commit is contained in:
Amritanshu
2019-08-08 13:31:30 +05:30
parent 7d06a2f961
commit c81b92c336
24 changed files with 534 additions and 249 deletions

View File

@ -46,7 +46,6 @@ export class Bill {
settlements: any[];
void: boolean;
voidReason: string;
printed: boolean;
voucherType: string;
serial: number;
kots: Kot[];
@ -59,7 +58,7 @@ export class Bill {
export enum PrintType {
Kot = 'KOT',
Bill = 'BILL',
Bill = 'REGULAR_BILL',
NoCharge = 'NO_CHARGE',
Staff = 'STAFF'
}