diff --git a/barker/barker/db/session.py b/barker/barker/db/session.py index c584b81..c079b85 100644 --- a/barker/barker/db/session.py +++ b/barker/barker/db/session.py @@ -8,5 +8,5 @@ from ..core.config import settings logging.basicConfig() logging.getLogger("sqlalchemy.engine").setLevel(settings.LOG_LEVEL) -engine = create_engine(settings.SQLALCHEMY_DATABASE_URI, pool_pre_ping=True, future=True) # type: ignore[arg-type] -SessionFuture = sessionmaker(autoflush=False, bind=engine, future=True) +engine = create_engine(settings.SQLALCHEMY_DATABASE_URI, pool_pre_ping=True) +SessionFuture = sessionmaker(autoflush=False, bind=engine) diff --git a/bookie/src/app/auth/login/login.component.html b/bookie/src/app/auth/login/login.component.html index 955add6..50c00c5 100644 --- a/bookie/src/app/auth/login/login.component.html +++ b/bookie/src/app/auth/login/login.component.html @@ -4,13 +4,13 @@
-
+
Username
-
+
Password diff --git a/bookie/src/app/beer-sale-report/beer-sale-report.component.html b/bookie/src/app/beer-sale-report/beer-sale-report.component.html index a71992b..c2abb7f 100644 --- a/bookie/src/app/beer-sale-report/beer-sale-report.component.html +++ b/bookie/src/app/beer-sale-report/beer-sale-report.component.html @@ -9,8 +9,8 @@ -
- +
+ Start Date - + Finish Date - +
-
- Regular - Happy Hour - Staff Consumption - No Charge +
+ Regular + Happy Hour + Staff Consumption + No Charge
diff --git a/bookie/src/app/bill-settlement-report/bill-settlement-report.component.html b/bookie/src/app/bill-settlement-report/bill-settlement-report.component.html index 7dadffe..4917ec0 100644 --- a/bookie/src/app/bill-settlement-report/bill-settlement-report.component.html +++ b/bookie/src/app/bill-settlement-report/bill-settlement-report.component.html @@ -9,8 +9,8 @@
-
- +
+ Start Date - + Finish Date - +
diff --git a/bookie/src/app/cashier-report/cashier-report.component.css b/bookie/src/app/cashier-report/cashier-report.component.css deleted file mode 100644 index 747e946..0000000 --- a/bookie/src/app/cashier-report/cashier-report.component.css +++ /dev/null @@ -1,8 +0,0 @@ -.right { - display: flex; - justify-content: flex-end; -} - -.spacer { - flex: 1 1 auto; -} diff --git a/bookie/src/app/cashier-report/cashier-report.component.html b/bookie/src/app/cashier-report/cashier-report.component.html index 5c7cd1c..3183157 100644 --- a/bookie/src/app/cashier-report/cashier-report.component.html +++ b/bookie/src/app/cashier-report/cashier-report.component.html @@ -13,8 +13,8 @@
-
- +
+ Start Date
-
- +
+ Cashier -- Cashier -- @@ -51,7 +51,7 @@ } - +
diff --git a/bookie/src/app/cashier-report/cashier-report.component.sass b/bookie/src/app/cashier-report/cashier-report.component.sass new file mode 100644 index 0000000..5e4adaa --- /dev/null +++ b/bookie/src/app/cashier-report/cashier-report.component.sass @@ -0,0 +1,11 @@ +.right + display: flex + justify-content: flex-end + +.spacer + flex: 1 1 auto + +.row-container + display: flex + flex-direction: row + gap: 20px // sets 20px space between all children diff --git a/bookie/src/app/cashier-report/cashier-report.component.ts b/bookie/src/app/cashier-report/cashier-report.component.ts index 1fd5f82..c48eefc 100644 --- a/bookie/src/app/cashier-report/cashier-report.component.ts +++ b/bookie/src/app/cashier-report/cashier-report.component.ts @@ -23,7 +23,7 @@ import { CashierReportService } from './cashier-report.service'; @Component({ selector: 'app-cashier-report', templateUrl: './cashier-report.component.html', - styleUrls: ['./cashier-report.component.css'], + styleUrls: ['./cashier-report.component.sass'], imports: [ CurrencyPipe, MatButtonModule, diff --git a/bookie/src/app/customers/customer-detail/customer-detail.component.css b/bookie/src/app/customers/customer-detail/customer-detail.component.css deleted file mode 100644 index e69de29..0000000 diff --git a/bookie/src/app/customers/customer-detail/customer-detail.component.html b/bookie/src/app/customers/customer-detail/customer-detail.component.html index bf0cfe0..1384cb2 100644 --- a/bookie/src/app/customers/customer-detail/customer-detail.component.html +++ b/bookie/src/app/customers/customer-detail/customer-detail.component.html @@ -4,50 +4,42 @@
-
+
Name
-
+
Phone
-
+
Address
-
+
Print in Bill?
-
+
@for (r of item.discounts; track r; let i = $index) { -
- - Discount on {{ r.name }} - - % - Max {{ r.limit | percent: '1.2-2' }} - -
+ + Discount on {{ r.name }} + + % + Max {{ r.limit | percent: '1.2-2' }} + }
- - + + diff --git a/bookie/src/app/customers/customer-detail/customer-detail.component.sass b/bookie/src/app/customers/customer-detail/customer-detail.component.sass new file mode 100644 index 0000000..5ea8ef2 --- /dev/null +++ b/bookie/src/app/customers/customer-detail/customer-detail.component.sass @@ -0,0 +1,10 @@ +.discount-grid + display: grid + grid-template-columns: repeat(3, 1fr) + gap: 20px + align-items: stretch + justify-items: stretch + +.discount-grid > * + width: 100% + box-sizing: border-box // helps with padding diff --git a/bookie/src/app/customers/customer-detail/customer-detail.component.ts b/bookie/src/app/customers/customer-detail/customer-detail.component.ts index 661f05d..d75b8b1 100644 --- a/bookie/src/app/customers/customer-detail/customer-detail.component.ts +++ b/bookie/src/app/customers/customer-detail/customer-detail.component.ts @@ -19,7 +19,7 @@ import { CustomerService } from '../customer.service'; @Component({ selector: 'app-customer-detail', templateUrl: './customer-detail.component.html', - styleUrls: ['./customer-detail.component.css'], + styleUrls: ['./customer-detail.component.sass'], imports: [ MatButtonModule, MatCardModule, diff --git a/bookie/src/app/customers/customer-list/customer-list.component.html b/bookie/src/app/customers/customer-list/customer-list.component.html index 6d277ed..66e7b16 100644 --- a/bookie/src/app/customers/customer-list/customer-list.component.html +++ b/bookie/src/app/customers/customer-list/customer-list.component.html @@ -10,7 +10,7 @@
-
+
Filter diff --git a/bookie/src/app/devices/device-detail/device-detail.component.html b/bookie/src/app/devices/device-detail/device-detail.component.html index e8a47d4..bc5cacd 100644 --- a/bookie/src/app/devices/device-detail/device-detail.component.html +++ b/bookie/src/app/devices/device-detail/device-detail.component.html @@ -4,13 +4,13 @@ -
+
Name
-
+
Section @@ -22,13 +22,13 @@
-
+
Enabled?
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/discount-report/discount-report.component.html b/bookie/src/app/discount-report/discount-report.component.html index d1aed88..55ec460 100644 --- a/bookie/src/app/discount-report/discount-report.component.html +++ b/bookie/src/app/discount-report/discount-report.component.html @@ -13,8 +13,8 @@
-
- +
+ Start Date - + Finish Date - +
diff --git a/bookie/src/app/guest-book/guest-book-detail/guest-book-detail.component.html b/bookie/src/app/guest-book/guest-book-detail/guest-book-detail.component.html index 6eebb8e..868bde3 100644 --- a/bookie/src/app/guest-book/guest-book-detail/guest-book-detail.component.html +++ b/bookie/src/app/guest-book/guest-book-detail/guest-book-detail.component.html @@ -4,7 +4,7 @@
-
+
Name @@ -13,7 +13,7 @@ }
-
+
Phone @@ -29,44 +29,44 @@ }
-
+
Pax
-
+
Address
-
+
Notes
-
- +
+ Date - + Hours - + Minutes
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/guest-book/guest-book-list/guest-book-list.component.html b/bookie/src/app/guest-book/guest-book-list/guest-book-list.component.html index 7b9e8ce..7d069c3 100644 --- a/bookie/src/app/guest-book/guest-book-list/guest-book-list.component.html +++ b/bookie/src/app/guest-book/guest-book-list/guest-book-list.component.html @@ -14,7 +14,7 @@
-
+
Date diff --git a/bookie/src/app/header-footer/header-footer.component.html b/bookie/src/app/header-footer/header-footer.component.html index e1b4864..faca983 100644 --- a/bookie/src/app/header-footer/header-footer.component.html +++ b/bookie/src/app/header-footer/header-footer.component.html @@ -4,7 +4,7 @@ -
+
Header / Footer diff --git a/bookie/src/app/home/home.component.html b/bookie/src/app/home/home.component.html index 309952c..df0124c 100644 --- a/bookie/src/app/home/home.component.html +++ b/bookie/src/app/home/home.component.html @@ -1,169 +1,180 @@ -
+
+

Sales

@if (auth.allowed('customers')) { - +

Guest Book

} @if (auth.allowed('sales')) { - +

Sales

} @if (auth.allowed('customers')) { - +

Customers

} -
-
+

Reports

@if (auth.allowed('cashier-report')) { - +

Cashier Report

} @if (auth.allowed('sale-report')) { - +

Sale Report

} @if (auth.allowed('tax-report')) { - +

Tax Report

} @if (auth.allowed('product-sale-report')) { - +

Product Sale Report

} @if (auth.allowed('bill-settlement-report')) { - +

Bill Settlement Report

} @if (auth.allowed('beer-sale-report')) { - +

Beer Sale Report

} @if (auth.allowed('discount-report')) { - +

Discount Report

} @if (auth.allowed('product-sale-report')) { - +

Menu Engineering Report

} -
-
+ @if (auth.allowed('products') || auth.allowed('temporal-products') || auth.allowed('modifiers')) { +

Products

+ } @if (auth.allowed('products')) { - +

Products

} @if (auth.allowed('temporal-products')) { - +

Temporal Products

} @if (auth.allowed('products')) { - +

Update Product Prices

} @if (auth.allowed('products')) { - +

Product Updates Report

} @if (auth.allowed('modifiers')) { - +

Modifiers

} @if (auth.allowed('modifiers')) { - +

Modifier Categories

} -
-
+ @if ( + auth.allowed('sections') || + auth.allowed('products') || + auth.allowed('taxes') || + auth.allowed('regimes') || + auth.allowed('devices') || + auth.allowed('section-printers') || + auth.allowed('printers') + ) { +

Masters

+ } @if (auth.allowed('sections')) { - +

Tables

} @if (auth.allowed('sections')) { - +

Sections

} @if (auth.allowed('products')) { - +

Menu Categories

} @if (auth.allowed('products')) { - +

Sale Categories

} @if (auth.allowed('taxes')) { - +

Taxes

} @if (auth.allowed('regimes')) { - +

Regimes

} @if (auth.allowed('devices')) { - +

Devices

} @if (auth.allowed('section-printers')) { - +

Section Printers

} @if (auth.allowed('printers')) { - +

Printers

} -
-
+ @if (auth.allowed('users') || auth.allowed('authenticated') || auth.allowed('owner') || auth.allowed('settings')) { +

Users

+ } @if (auth.allowed('users')) { - +

Roles

} @if (auth.allowed('users')) { - +

Users

} @if (auth.allowed('authenticated')) { - +

Change Password

} @if (auth.allowed('owner')) { - +

Header / Footer

} @if (auth.allowed('owner')) { - +

Settle Options

} @if (auth.allowed('settings')) { - +

Settings

} diff --git a/bookie/src/app/home/home.component.sass b/bookie/src/app/home/home.component.sass new file mode 100644 index 0000000..6ebbbb7 --- /dev/null +++ b/bookie/src/app/home/home.component.sass @@ -0,0 +1,8 @@ +.tables-grid + display: grid + grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) + gap: 20px + + +.tables-grid > h2 + grid-column: 1 / -1 diff --git a/bookie/src/app/home/home.component.ts b/bookie/src/app/home/home.component.ts index 126a052..61d3106 100644 --- a/bookie/src/app/home/home.component.ts +++ b/bookie/src/app/home/home.component.ts @@ -8,7 +8,7 @@ import { AuthService } from '../auth/auth.service'; @Component({ selector: 'app-home', templateUrl: './home.component.html', - styleUrls: ['./home.component.css'], + styleUrls: ['./home.component.sass'], imports: [MatCardModule, RouterLink], }) export class HomeComponent { diff --git a/bookie/src/app/menu-category/menu-category-detail/menu-category-detail.component.html b/bookie/src/app/menu-category/menu-category-detail/menu-category-detail.component.html index d10d973..00b080f 100644 --- a/bookie/src/app/menu-category/menu-category-detail/menu-category-detail.component.html +++ b/bookie/src/app/menu-category/menu-category-detail/menu-category-detail.component.html @@ -4,19 +4,19 @@ -
+
Name
-
+
Is Active?
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/menu-engineering-report/menu-engineering-report.component.html b/bookie/src/app/menu-engineering-report/menu-engineering-report.component.html index df2acc7..d8d4d90 100644 --- a/bookie/src/app/menu-engineering-report/menu-engineering-report.component.html +++ b/bookie/src/app/menu-engineering-report/menu-engineering-report.component.html @@ -13,8 +13,8 @@
-
- +
+ Start Date - + Finish Date - +
-
+
Filter diff --git a/bookie/src/app/modifier-categories/modifier-category-detail/modifier-category-detail.component.html b/bookie/src/app/modifier-categories/modifier-category-detail/modifier-category-detail.component.html index 1efbb52..0601760 100644 --- a/bookie/src/app/modifier-categories/modifier-category-detail/modifier-category-detail.component.html +++ b/bookie/src/app/modifier-categories/modifier-category-detail/modifier-category-detail.component.html @@ -4,14 +4,14 @@ -
+
Name
-
- +
+ Minimum @@ -20,7 +20,7 @@
-
+
Is Active?
@@ -62,8 +62,8 @@ - - + + diff --git a/bookie/src/app/modifiers/modifier-detail/modifier-detail.component.html b/bookie/src/app/modifiers/modifier-detail/modifier-detail.component.html index fbcf1fa..98346a9 100644 --- a/bookie/src/app/modifiers/modifier-detail/modifier-detail.component.html +++ b/bookie/src/app/modifiers/modifier-detail/modifier-detail.component.html @@ -4,22 +4,22 @@
-
+
Name
-
+
Show In Bill?
-
+
Price
-
+
Category @@ -31,13 +31,13 @@
-
+
Is Active?
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/modifiers/modifier-list/modifier-list.component.html b/bookie/src/app/modifiers/modifier-list/modifier-list.component.html index 829e2d1..2aaf9a0 100644 --- a/bookie/src/app/modifiers/modifier-list/modifier-list.component.html +++ b/bookie/src/app/modifiers/modifier-list/modifier-list.component.html @@ -10,7 +10,7 @@
-
+
Modifier Category diff --git a/bookie/src/app/printers/printer-detail/printer-detail.component.html b/bookie/src/app/printers/printer-detail/printer-detail.component.html index f41d771..fafbaf5 100644 --- a/bookie/src/app/printers/printer-detail/printer-detail.component.html +++ b/bookie/src/app/printers/printer-detail/printer-detail.component.html @@ -4,14 +4,14 @@ -
+
Name
-
- +
+ Address @@ -22,8 +22,8 @@
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/product-sale-report/product-sale-report.component.html b/bookie/src/app/product-sale-report/product-sale-report.component.html index bbe26fa..8a7f8e7 100644 --- a/bookie/src/app/product-sale-report/product-sale-report.component.html +++ b/bookie/src/app/product-sale-report/product-sale-report.component.html @@ -13,8 +13,8 @@
-
- +
+ Start Date - + Finish Date - + Section -- All -- @@ -49,7 +49,7 @@ } - +
diff --git a/bookie/src/app/product-updates-report/product-updates-report.component.html b/bookie/src/app/product-updates-report/product-updates-report.component.html index 3f23fdc..e3423eb 100644 --- a/bookie/src/app/product-updates-report/product-updates-report.component.html +++ b/bookie/src/app/product-updates-report/product-updates-report.component.html @@ -9,8 +9,8 @@
-
- +
+ Start Date - + Finish Date - +
diff --git a/bookie/src/app/product/product-detail/product-detail.component.html b/bookie/src/app/product/product-detail/product-detail.component.html index 9b87cde..a92c5fb 100644 --- a/bookie/src/app/product/product-detail/product-detail.component.html +++ b/bookie/src/app/product/product-detail/product-detail.component.html @@ -4,18 +4,18 @@
-
- +
+ Name - + Units
-
- +
+ Price @@ -24,12 +24,12 @@
-
+
Has Happy Hour? Is Not Available?
-
- +
+ Menu Category @for (mc of menuCategories; track mc) { @@ -52,8 +52,8 @@
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/product/product-list/product-list.component.html b/bookie/src/app/product/product-list/product-list.component.html index d862eeb..7e3b82a 100644 --- a/bookie/src/app/product/product-list/product-list.component.html +++ b/bookie/src/app/product/product-list/product-list.component.html @@ -21,8 +21,8 @@
-
- +
+ Filter diff --git a/bookie/src/app/regimes/regime-detail/regime-detail.component.html b/bookie/src/app/regimes/regime-detail/regime-detail.component.html index e582cec..eef015a 100644 --- a/bookie/src/app/regimes/regime-detail/regime-detail.component.html +++ b/bookie/src/app/regimes/regime-detail/regime-detail.component.html @@ -4,19 +4,19 @@ -
+
Name
-
+
Header
-
+
Prefix @@ -24,8 +24,8 @@
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/roles/role-detail/role-detail.component.html b/bookie/src/app/roles/role-detail/role-detail.component.html index 871cd9a..196644c 100644 --- a/bookie/src/app/roles/role-detail/role-detail.component.html +++ b/bookie/src/app/roles/role-detail/role-detail.component.html @@ -4,7 +4,7 @@
-
+
Name @@ -13,15 +13,15 @@
@for (p of item.permissions; track p; let i = $index) { -
+
{{ p.name }}
}
- - + + diff --git a/bookie/src/app/sale-category/sale-category-detail/sale-category-detail.component.html b/bookie/src/app/sale-category/sale-category-detail/sale-category-detail.component.html index 2483909..13498a9 100644 --- a/bookie/src/app/sale-category/sale-category-detail/sale-category-detail.component.html +++ b/bookie/src/app/sale-category/sale-category-detail/sale-category-detail.component.html @@ -4,20 +4,20 @@
-
+
Name
-
+
Discount Limit %
-
+
Tax @@ -31,8 +31,8 @@
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/sale-report/sale-report.component.html b/bookie/src/app/sale-report/sale-report.component.html index 1e3eef7..ea76f09 100644 --- a/bookie/src/app/sale-report/sale-report.component.html +++ b/bookie/src/app/sale-report/sale-report.component.html @@ -13,8 +13,8 @@
-
- +
+ Start Date - + Finish Date - + Section -- All -- @@ -49,7 +49,7 @@ } - +
diff --git a/bookie/src/app/sales/bill-number/bill-number.component.html b/bookie/src/app/sales/bill-number/bill-number.component.html index 529749b..2bfa629 100644 --- a/bookie/src/app/sales/bill-number/bill-number.component.html +++ b/bookie/src/app/sales/bill-number/bill-number.component.html @@ -1,7 +1,7 @@
-
- +
+ Regime @for (r of regimes; track r) { diff --git a/bookie/src/app/sales/bill-type/bill-type.component.css b/bookie/src/app/sales/bill-type/bill-type.component.css deleted file mode 100644 index e69de29..0000000 diff --git a/bookie/src/app/sales/bill-type/bill-type.component.html b/bookie/src/app/sales/bill-type/bill-type.component.html index 4d567df..ad15b9e 100644 --- a/bookie/src/app/sales/bill-type/bill-type.component.html +++ b/bookie/src/app/sales/bill-type/bill-type.component.html @@ -1,8 +1,8 @@

Bill Type

-
+
Regular Staff h2 + grid-column: 1 / -1 diff --git a/bookie/src/app/sales/bill-type/bill-type.component.ts b/bookie/src/app/sales/bill-type/bill-type.component.ts index de79901..3f2315e 100644 --- a/bookie/src/app/sales/bill-type/bill-type.component.ts +++ b/bookie/src/app/sales/bill-type/bill-type.component.ts @@ -10,7 +10,7 @@ import { VoucherType } from '../bills/voucher-type'; @Component({ selector: 'app-bill-type', templateUrl: './bill-type.component.html', - styleUrls: ['./bill-type.component.css'], + styleUrls: ['./bill-type.component.sass'], imports: [CdkScrollableModule, MatButtonModule, MatCardModule, MatDialogModule, MatRippleModule], }) export class BillTypeComponent { diff --git a/bookie/src/app/sales/choose-customer/choose-customer.component.html b/bookie/src/app/sales/choose-customer/choose-customer.component.html index a7d1427..958fb68 100644 --- a/bookie/src/app/sales/choose-customer/choose-customer.component.html +++ b/bookie/src/app/sales/choose-customer/choose-customer.component.html @@ -1,7 +1,7 @@

Customer

-
+
Phone
-
+
Name
-
+
Address
-
+
Print in Bill?

@for (r of item.discounts; track r; let i = $index) { -
+
Discount on {{ r.name }} diff --git a/bookie/src/app/sales/home/sales-home.component.css b/bookie/src/app/sales/home/sales-home.component.css deleted file mode 100644 index e69de29..0000000 diff --git a/bookie/src/app/sales/home/sales-home.component.html b/bookie/src/app/sales/home/sales-home.component.html index 846c02b..89525eb 100644 --- a/bookie/src/app/sales/home/sales-home.component.html +++ b/bookie/src/app/sales/home/sales-home.component.html @@ -1,76 +1,80 @@ -
- -

Add Product

-
- -

Discount

-
- -

Print KOT

-
- -

Print Bill

-
- -

Back to Tables

-
- -

Receive Payment

-
- -

Move Table

-
- -

Cancel Bill

-
- -

Split Bill

-
-
+ + +
+ +

Add Product

+
+ +

Discount

+
+ +

Print KOT

+
+ +

Print Bill

+
+ +

Back to Tables

+
+ +

Receive Payment

+
+ +

Move Table

+
+ +

Cancel Bill

+
+ +

Split Bill

+
+
+
+
diff --git a/bookie/src/app/sales/home/sales-home.component.sass b/bookie/src/app/sales/home/sales-home.component.sass new file mode 100644 index 0000000..eb996bd --- /dev/null +++ b/bookie/src/app/sales/home/sales-home.component.sass @@ -0,0 +1,9 @@ +.tables-grid + margin-top: 10px + display: grid + grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) + gap: 20px + + +.tables-grid > h2 + grid-column: 1 / -1 diff --git a/bookie/src/app/sales/home/sales-home.component.ts b/bookie/src/app/sales/home/sales-home.component.ts index b281d65..88d3531 100644 --- a/bookie/src/app/sales/home/sales-home.component.ts +++ b/bookie/src/app/sales/home/sales-home.component.ts @@ -27,7 +27,7 @@ import { TablesDialogComponent } from '../tables-dialog/tables-dialog.component' @Component({ selector: 'app-sales-home', templateUrl: './sales-home.component.html', - styleUrls: ['./sales-home.component.css'], + styleUrls: ['./sales-home.component.sass'], imports: [MatCardModule, MatRippleModule, RouterLink], }) export class SalesHomeComponent { diff --git a/bookie/src/app/sales/menu-categories/menu-categories.component.html b/bookie/src/app/sales/menu-categories/menu-categories.component.html index 06aa8f0..c815e73 100644 --- a/bookie/src/app/sales/menu-categories/menu-categories.component.html +++ b/bookie/src/app/sales/menu-categories/menu-categories.component.html @@ -1,8 +1,8 @@ -
+
@for (item of list; track item) { h2 + grid-column: 1 / -1 diff --git a/bookie/src/app/sales/modifiers/modifiers.component.css b/bookie/src/app/sales/modifiers/modifiers.component.css deleted file mode 100644 index e69de29..0000000 diff --git a/bookie/src/app/sales/modifiers/modifiers.component.html b/bookie/src/app/sales/modifiers/modifiers.component.html index c41fc96..b5ec2b1 100644 --- a/bookie/src/app/sales/modifiers/modifiers.component.html +++ b/bookie/src/app/sales/modifiers/modifiers.component.html @@ -13,10 +13,10 @@ } -
+
@for (m of item.modifiers; track m.id) { h2 + grid-column: 1 / -1 diff --git a/bookie/src/app/sales/modifiers/modifiers.component.ts b/bookie/src/app/sales/modifiers/modifiers.component.ts index b04f655..c1bf412 100644 --- a/bookie/src/app/sales/modifiers/modifiers.component.ts +++ b/bookie/src/app/sales/modifiers/modifiers.component.ts @@ -16,7 +16,7 @@ import { ModifierCategory } from '../../core/modifier-category'; @Component({ selector: 'app-modifiers', templateUrl: './modifiers.component.html', - styleUrls: ['./modifiers.component.css'], + styleUrls: ['./modifiers.component.sass'], imports: [ AsyncPipe, CdkScrollable, diff --git a/bookie/src/app/sales/pax/pax.component.html b/bookie/src/app/sales/pax/pax.component.html index ac5302f..26b2389 100644 --- a/bookie/src/app/sales/pax/pax.component.html +++ b/bookie/src/app/sales/pax/pax.component.html @@ -1,7 +1,7 @@

Pax

-
+
Pax -
+
@for (item of list; track item) { h2 + grid-column: 1 / -1 diff --git a/bookie/src/app/sales/products/products.component.ts b/bookie/src/app/sales/products/products.component.ts index 2fa6172..c2511d8 100644 --- a/bookie/src/app/sales/products/products.component.ts +++ b/bookie/src/app/sales/products/products.component.ts @@ -10,7 +10,7 @@ import { BillService } from '../bill.service'; @Component({ selector: 'app-products', templateUrl: './products.component.html', - styleUrls: ['./products.component.css'], + styleUrls: ['./products.component.sass'], imports: [CurrencyPipe, MatCardModule, MatRippleModule, RouterLink], }) export class ProductsComponent implements OnInit { diff --git a/bookie/src/app/sales/quantity/quantity.component.html b/bookie/src/app/sales/quantity/quantity.component.html index e7e7f67..02c7e69 100644 --- a/bookie/src/app/sales/quantity/quantity.component.html +++ b/bookie/src/app/sales/quantity/quantity.component.html @@ -1,6 +1,6 @@ -
+
Quantity Running Tables -
+
@for (table of list; track table) { } - +

Open Bill

diff --git a/bookie/src/app/sales/running-tables/running-tables.component.sass b/bookie/src/app/sales/running-tables/running-tables.component.sass index e69de29..c2ba57c 100644 --- a/bookie/src/app/sales/running-tables/running-tables.component.sass +++ b/bookie/src/app/sales/running-tables/running-tables.component.sass @@ -0,0 +1,4 @@ +.tables-grid + display: grid + grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) + gap: 20px diff --git a/bookie/src/app/sales/split-bill/split-bill.component.html b/bookie/src/app/sales/split-bill/split-bill.component.html index 69ed809..30aa9bb 100644 --- a/bookie/src/app/sales/split-bill/split-bill.component.html +++ b/bookie/src/app/sales/split-bill/split-bill.component.html @@ -3,7 +3,7 @@
@for (sc of list; track sc; let i = $index) { -
+
{{ sc.name }}
} diff --git a/bookie/src/app/sales/tables-dialog/tables-dialog.component.html b/bookie/src/app/sales/tables-dialog/tables-dialog.component.html index f5cabf7..bf72b78 100644 --- a/bookie/src/app/sales/tables-dialog/tables-dialog.component.html +++ b/bookie/src/app/sales/tables-dialog/tables-dialog.component.html @@ -1,9 +1,9 @@

Tables

-
+
@for (table of list; track table) { h2 + grid-column: 1 / -1 diff --git a/bookie/src/app/section-printers/section-printer.component.html b/bookie/src/app/section-printers/section-printer.component.html index b9c379b..2dabdb0 100644 --- a/bookie/src/app/section-printers/section-printer.component.html +++ b/bookie/src/app/section-printers/section-printer.component.html @@ -4,7 +4,7 @@ -
+
Section @@ -60,8 +60,8 @@ - - + + @if (sectionId) { } diff --git a/bookie/src/app/sections/section-detail/section-detail.component.html b/bookie/src/app/sections/section-detail/section-detail.component.html index 6a2dd7c..4a19a0d 100644 --- a/bookie/src/app/sections/section-detail/section-detail.component.html +++ b/bookie/src/app/sections/section-detail/section-detail.component.html @@ -4,7 +4,7 @@
-
+
Name @@ -12,8 +12,8 @@
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/settings/settings.component.html b/bookie/src/app/settings/settings.component.html index 61c561f..36b8c3e 100644 --- a/bookie/src/app/settings/settings.component.html +++ b/bookie/src/app/settings/settings.component.html @@ -12,7 +12,7 @@
-
+
Start Date -
+
Name
-
- +
+ Voucher Type @for (vt of voucherTypes; track vt) { @@ -21,7 +21,7 @@ } - + Reporting Level @for (rl of reportingLevel; track rl) { @@ -35,8 +35,8 @@
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/tables/table-detail/table-detail.component.html b/bookie/src/app/tables/table-detail/table-detail.component.html index df9710a..9d5d98a 100644 --- a/bookie/src/app/tables/table-detail/table-detail.component.html +++ b/bookie/src/app/tables/table-detail/table-detail.component.html @@ -4,19 +4,19 @@
-
+
Name
-
+
Seats
-
+
Section @@ -28,13 +28,13 @@
-
+
Is Active?
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/tax-report/tax-report.component.html b/bookie/src/app/tax-report/tax-report.component.html index 39ae1cc..d563ec7 100644 --- a/bookie/src/app/tax-report/tax-report.component.html +++ b/bookie/src/app/tax-report/tax-report.component.html @@ -9,8 +9,8 @@
-
- +
+ Start Date - + Finish Date - +
diff --git a/bookie/src/app/taxes/tax-detail/tax-detail.component.html b/bookie/src/app/taxes/tax-detail/tax-detail.component.html index 17fc901..cb577f5 100644 --- a/bookie/src/app/taxes/tax-detail/tax-detail.component.html +++ b/bookie/src/app/taxes/tax-detail/tax-detail.component.html @@ -4,21 +4,21 @@
-
+
Name Format for GST: ST GST @ x% (1/2) ; CGST @ x% (1/2)
-
+
Rate %
-
+
Regime @@ -32,8 +32,8 @@
- - + + @if (!!item.id) { } diff --git a/bookie/src/app/temporal-product/temporal-product-detail/temporal-product-detail.component.html b/bookie/src/app/temporal-product/temporal-product-detail/temporal-product-detail.component.html index 1cb3f47..c14c243 100644 --- a/bookie/src/app/temporal-product/temporal-product-detail/temporal-product-detail.component.html +++ b/bookie/src/app/temporal-product/temporal-product-detail/temporal-product-detail.component.html @@ -4,24 +4,24 @@
-
+
Product ID
-
- +
+ Name - + Units
-
- +
+ Price @@ -30,12 +30,12 @@
-
+
Has Happy Hour? Is Not Available?
-
- +
+ Menu Category @for (mc of menuCategories; track mc) { @@ -56,14 +56,14 @@
-
- +
+ Valid From - + Valid Till @@ -72,8 +72,8 @@
- - + + diff --git a/bookie/src/app/temporal-product/temporal-product-list/temporal-product-list.component.html b/bookie/src/app/temporal-product/temporal-product-list/temporal-product-list.component.html index c2a18e5..be17234 100644 --- a/bookie/src/app/temporal-product/temporal-product-list/temporal-product-list.component.html +++ b/bookie/src/app/temporal-product/temporal-product-list/temporal-product-list.component.html @@ -4,12 +4,12 @@
-
- +
+ Filter - + Menu Category -- All Products -- @@ -20,7 +20,7 @@ } - + Sale Category -- All Products -- diff --git a/bookie/src/app/update-product-prices/update-product-prices.component.html b/bookie/src/app/update-product-prices/update-product-prices.component.html index 557097d..79ab870 100644 --- a/bookie/src/app/update-product-prices/update-product-prices.component.html +++ b/bookie/src/app/update-product-prices/update-product-prices.component.html @@ -9,14 +9,14 @@ -
- +
+ Date - + Menu Category @for (s of menuCategories; track s) { @@ -26,7 +26,7 @@ } - +
diff --git a/bookie/src/app/users/user-detail/user-detail.component.html b/bookie/src/app/users/user-detail/user-detail.component.html index 3813a3a..7445d09 100644 --- a/bookie/src/app/users/user-detail/user-detail.component.html +++ b/bookie/src/app/users/user-detail/user-detail.component.html @@ -4,34 +4,34 @@ -
+
Name
-
+
Password {{ hide ? 'visibility' : 'visibility_off' }}
-
+
Is Locked Out?
@for (r of item.roles; track r; let i = $index) { -
+
{{ r.name }}
}
- - + + diff --git a/bookie/src/styles.sass b/bookie/src/styles.sass index dba73eb..bbfaf02 100644 --- a/bookie/src/styles.sass +++ b/bookie/src/styles.sass @@ -15,6 +15,40 @@ a color: rgb(0, 0, 238) text-decoration: underline +.basis-15 + flex-basis: 15% + +.basis-1-6 + flex-basis: 16.67% + +.basis-1-5 + flex-basis: 20% + +.basis-1-4 + flex-basis: 25% + +.basis-30 + flex-basis: 30% + +.basis-1-3 + flex-basis: 33.33% + +.basis-2-5 + flex-basis: 40% + +.basis-1-2 + flex-basis: 50% + +.basis-3-4 + flex-basis: 75% + +.basis-4-5 + flex-basis: 80% + +.row-container + display: flex + flex-direction: row + gap: 20px // sets 20px space between all children $my-primary: mat.m2-define-palette(mat.$m2-indigo-palette, 500) $my-accent: mat.m2-define-palette(mat.$m2-amber-palette, A200, A100, A400) @@ -28,7 +62,7 @@ $my-disabled: mat.m2-define-palette(mat.$m2-grey-palette, 500) min-height: 150px max-height: 150px cursor: pointer - margin: 20px + // margin: 20px h3 text-align: center padding: 0.5rem diff --git a/version_bump.sh b/version_bump.sh index 68a8f14..74d3be1 100755 --- a/version_bump.sh +++ b/version_bump.sh @@ -21,8 +21,4 @@ then else echo "No version bump" fi -git push -git tag --delete latest -git tag latest -git push --delete origin latest git push --tags