better logs
Some checks failed
Build and Publish / BuildAndDeploy (push) Successful in 3m22s
Build and Publish / BuildAndDeployAmd64 (push) Has been cancelled

This commit is contained in:
matst80
2025-05-12 21:16:24 +02:00
parent 9ba5384615
commit 5d8a4f8e83

View File

@@ -49,6 +49,7 @@ type CartItem struct {
Stock StockStatus `json:"stock"`
Quantity int `json:"qty"`
Tax int `json:"tax"`
TaxRate int `json:"taxRate"`
Brand string `json:"brand,omitempty"`
Category string `json:"category,omitempty"`
Category2 string `json:"category2,omitempty"`
@@ -338,6 +339,7 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) (*FrameWithPa
ArticleType: msg.ArticleType,
Outlet: msg.Outlet,
Tax: int(taxAmount),
TaxRate: tax,
})
c.UpdateTotals()
c.mu.Unlock()
@@ -481,7 +483,7 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) (*FrameWithPa
Name: item.Name,
Quantity: item.Quantity,
UnitPrice: int(item.Price),
TaxRate: 2500,
TaxRate: 2500, // item.TaxRate,
QuantityUnit: "st",
TotalAmount: int(item.TotalPrice),
TotalTaxAmount: int(item.TotalTax),