Chore: Updated python dependencies
Chore: Updated angular to v19 Chore: Refactored ops with docker and ansible
This commit is contained in:
@ -19,7 +19,6 @@ import { Regime } from 'src/app/core/regime';
|
||||
selector: 'app-bill-number',
|
||||
templateUrl: './bill-number.component.html',
|
||||
styleUrls: ['./bill-number.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
CdkScrollable,
|
||||
MatDialogContent,
|
||||
|
||||
@ -17,7 +17,6 @@ import { VoucherType } from '../bills/voucher-type';
|
||||
selector: 'app-bill-type',
|
||||
templateUrl: './bill-type.component.html',
|
||||
styleUrls: ['./bill-type.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatDialogTitle,
|
||||
CdkScrollable,
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
import { SelectionModel } from '@angular/cdk/collections';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { BehaviorSubject, throwError } from 'rxjs';
|
||||
import { Observable } from 'rxjs';
|
||||
import { BehaviorSubject, throwError, Observable } from 'rxjs';
|
||||
import { tap } from 'rxjs/operators';
|
||||
|
||||
import { BillViewItem } from '../core/bill-view-item';
|
||||
@ -391,7 +390,7 @@ export class BillService {
|
||||
private happyHourItemsMoreThanRegular(): boolean {
|
||||
// This is for the whole bill. eg. Kot 1 => Reg 2 + HH 2; Kot 2 => Reg 4; Kot 3 => Reg - 4
|
||||
// This is pass okay in happy hours items balanced, but overall this is wrong. Hence this check
|
||||
const invs: { [id: string]: { normal: number; happy: number } } = {};
|
||||
const invs: Record<string, { normal: number; happy: number }> = {};
|
||||
for (const kot of this.bill.kots) {
|
||||
for (const inventory of kot.inventories) {
|
||||
const pid = inventory.product.id as string;
|
||||
|
||||
@ -50,7 +50,6 @@ import { VoucherType } from './voucher-type';
|
||||
selector: 'app-bills',
|
||||
templateUrl: './bills.component.html',
|
||||
styleUrls: ['./bills.component.sass'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatCard,
|
||||
MatCardHeader,
|
||||
|
||||
@ -27,7 +27,6 @@ import { CustomerService } from '../../customers/customer.service';
|
||||
selector: 'app-choose-customer',
|
||||
templateUrl: './choose-customer.component.html',
|
||||
styleUrls: ['./choose-customer.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatDialogTitle,
|
||||
CdkScrollable,
|
||||
|
||||
@ -35,7 +35,6 @@ import { DiscountItem } from './discount-item';
|
||||
selector: 'app-modifiers',
|
||||
templateUrl: './discount.component.html',
|
||||
styleUrls: ['./discount.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatDialogTitle,
|
||||
CdkScrollable,
|
||||
@ -94,7 +93,7 @@ export class DiscountComponent {
|
||||
this.list = list;
|
||||
this.form.controls.discounts.clear();
|
||||
|
||||
this.list.forEach((x) =>
|
||||
this.list.forEach((x) => {
|
||||
this.form.controls.discounts.push(
|
||||
new FormGroup({
|
||||
name: new FormControl(x.name, { nonNullable: true }),
|
||||
@ -103,9 +102,9 @@ export class DiscountComponent {
|
||||
nonNullable: true,
|
||||
}),
|
||||
}),
|
||||
),
|
||||
),
|
||||
(this.dataSource = new DiscountDataSource(this.list));
|
||||
);
|
||||
});
|
||||
this.dataSource = new DiscountDataSource(this.list);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ import { TablesDialogComponent } from '../tables-dialog/tables-dialog.component'
|
||||
selector: 'app-sales-home',
|
||||
templateUrl: './sales-home.component.html',
|
||||
styleUrls: ['./sales-home.component.css'],
|
||||
standalone: true,
|
||||
imports: [MatCard, MatRipple, RouterLink],
|
||||
})
|
||||
export class SalesHomeComponent {
|
||||
|
||||
@ -9,7 +9,6 @@ import { MenuCategory } from '../../core/menu-category';
|
||||
selector: 'app-menu-category',
|
||||
templateUrl: './menu-categories.component.html',
|
||||
styleUrls: ['./menu-categories.component.sass'],
|
||||
standalone: true,
|
||||
imports: [MatCard, MatCardContent, MatRipple, RouterLink],
|
||||
})
|
||||
export class MenuCategoriesComponent implements OnInit {
|
||||
|
||||
@ -16,7 +16,6 @@ import { ModifierCategory } from '../../core/modifier-category';
|
||||
selector: 'app-modifiers',
|
||||
templateUrl: './modifiers.component.html',
|
||||
styleUrls: ['./modifiers.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
CdkScrollable,
|
||||
MatDialogContent,
|
||||
|
||||
@ -17,7 +17,6 @@ import { MatInput } from '@angular/material/input';
|
||||
selector: 'app-pax',
|
||||
templateUrl: './pax.component.html',
|
||||
styleUrls: ['./pax.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatDialogTitle,
|
||||
CdkScrollable,
|
||||
|
||||
@ -11,7 +11,6 @@ import { BillService } from '../bill.service';
|
||||
selector: 'app-products',
|
||||
templateUrl: './products.component.html',
|
||||
styleUrls: ['./products.component.css'],
|
||||
standalone: true,
|
||||
imports: [MatCard, MatCardContent, MatRipple, RouterLink, CurrencyPipe],
|
||||
})
|
||||
export class ProductsComponent implements OnInit {
|
||||
|
||||
@ -18,7 +18,6 @@ import { MathService } from '../../shared/math.service';
|
||||
selector: 'app-quantity',
|
||||
templateUrl: './quantity.component.html',
|
||||
styleUrls: ['./quantity.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
CdkScrollable,
|
||||
MatDialogContent,
|
||||
|
||||
@ -31,7 +31,6 @@ import { ReasonDatasource } from './reason-datasource';
|
||||
selector: 'app-reason',
|
||||
templateUrl: './reason.component.html',
|
||||
styleUrls: ['./reason.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatDialogTitle,
|
||||
CdkScrollable,
|
||||
|
||||
@ -42,7 +42,6 @@ import { ReceivePaymentDatasource } from './receive-payment-datasource';
|
||||
selector: 'app-receive-payment',
|
||||
templateUrl: './receive-payment.component.html',
|
||||
styleUrls: ['./receive-payment.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatDialogTitle,
|
||||
CdkScrollable,
|
||||
|
||||
@ -15,7 +15,6 @@ import { BillNumberComponent } from '../bill-number/bill-number.component';
|
||||
selector: 'app-running-tables',
|
||||
templateUrl: './running-tables.component.html',
|
||||
styleUrls: ['./running-tables.component.sass'],
|
||||
standalone: true,
|
||||
imports: [MatCard, MatCardHeader, MatCardTitle, MatCardContent, MatRipple, CurrencyPipe],
|
||||
})
|
||||
export class RunningTablesComponent implements OnInit {
|
||||
|
||||
@ -17,7 +17,6 @@ import { Observable } from 'rxjs';
|
||||
selector: 'app-split-bill',
|
||||
templateUrl: './split-bill.component.html',
|
||||
styleUrls: ['./split-bill.component.css'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatDialogTitle,
|
||||
CdkScrollable,
|
||||
|
||||
@ -20,7 +20,6 @@ import { Table } from '../../core/table';
|
||||
selector: 'app-tables-dialog',
|
||||
templateUrl: './tables-dialog.component.html',
|
||||
styleUrls: ['./tables-dialog.component.sass'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatDialogTitle,
|
||||
CdkScrollable,
|
||||
|
||||
Reference in New Issue
Block a user