Skip to content

Commit

Permalink
fix: tva
Browse files Browse the repository at this point in the history
  • Loading branch information
yyewolf committed Dec 14, 2023
1 parent 991a536 commit 94ab140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/restock.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (s *Server) CreateRestock(c echo.Context) error {

item.AmountLeft += restockItem.AmountOfBundle * restockItem.AmountPerBundle
item.LastTva = &restockItem.Tva
item.Prices.Coutant = uint64(float64(restockItem.Tva) * float64(restockItem.BundleCostHt) / (100.0 * float64(restockItem.AmountPerBundle)))
item.Prices.Coutant = uint64((10000.0+float64(restockItem.Tva)) * float64(restockItem.BundleCostHt) / (10000.0 * float64(restockItem.AmountPerBundle)))

err = s.DBackend.UpdateItem(c.Request().Context(), item)
if err != nil {
Expand Down

0 comments on commit 94ab140

Please sign in to comment.