2 Commits

Author SHA1 Message Date
e955ef4196 Version Bump v11.6.3 2023-08-07 17:45:35 +05:30
f1ef578eae Fix: Schema would show the full price for happy hour products 2023-08-07 17:43:09 +05:30
7 changed files with 8 additions and 10 deletions

View File

@ -1 +1 @@
__version__ = "11.6.2"
__version__ = "11.6.3"

View File

@ -55,11 +55,9 @@ class Inventory(BaseModel):
@model_validator(mode="after")
def calculate_amount(self) -> "Inventory":
price = 0 if self.is_happy_hour else self.price
self.amount = round(
Decimal(
(self.price or Decimal(0)) * self.quantity * (1 - self.discount) * (1 + (self.tax_rate or Decimal(0)))
),
2,
Decimal(price * self.quantity * (1 - self.discount) * (1 + (self.tax_rate or Decimal(0)))), 2
)
return self

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "barker"
version = "11.6.2"
version = "11.6.3"
description = "Point of Sale for a restaurant"
authors = ["tanshu <git@tanshu.com>"]

View File

@ -1,6 +1,6 @@
{
"name": "bookie",
"version": "11.6.2",
"version": "11.6.3",
"scripts": {
"ng": "ng",
"start": "ng serve",

View File

@ -1,5 +1,5 @@
export const environment = {
production: true,
ACCESS_TOKEN_REFRESH_MINUTES: 10, // refresh token 10 minutes before expiry
version: '11.6.2',
version: '11.6.3',
};

View File

@ -5,7 +5,7 @@
export const environment = {
production: false,
ACCESS_TOKEN_REFRESH_MINUTES: 10, // refresh token 10 minutes before expiry
version: '11.6.2',
version: '11.6.3',
};
/*

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "frank"
version = "11.6.2"
version = "11.6.3"
description = "Point of Sale for a restaurant"
authors = ["tanshu <git@tanshu.com>"]