cleanup
Some checks failed
Build and Publish / BuildAndDeploy (push) Failing after 2m56s
Build and Publish / BuildAndDeployAmd64 (push) Has been cancelled

This commit is contained in:
matst80
2025-05-05 16:04:25 +02:00
parent ebd54b1476
commit f079d0b649

View File

@@ -474,8 +474,6 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) (*FrameWithPa
c.PaymentInProgress = true
c.Processing = true
for _, item := range c.Items {
total := int(item.Price) * item.Quantity
taxAmount := int(item.Tax) * item.Quantity
orderLines = append(orderLines, &Line{
Type: "physical",
@@ -485,8 +483,8 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) (*FrameWithPa
UnitPrice: int(item.Price),
TaxRate: int(item.Tax),
QuantityUnit: "st",
TotalAmount: total,
TotalTaxAmount: taxAmount,
TotalAmount: int(item.TotalPrice),
TotalTaxAmount: int(item.TotalTax),
ImageURL: fmt.Sprintf("https://www.elgiganten.se%s", item.Image),
})
}