Skip to content

Commit

Permalink
fix(restock): update prix coutant
Browse files Browse the repository at this point in the history
  • Loading branch information
yyewolf committed Nov 27, 2023
1 parent 8272d72 commit 336b850
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/api/restock.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func (s *Server) CreateRestock(c echo.Context) error {

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

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

0 comments on commit 336b850

Please sign in to comment.