product price
This commit is contained in:
@@ -293,6 +293,11 @@ func (s *productService) ImportCatalogueProduct(reqs []models.ImportCataloguePro
|
||||
}
|
||||
}
|
||||
|
||||
// Price carries the selling price onto the per-store row. Omitting it
|
||||
// left productlocations.price at 0 for every imported product, and that
|
||||
// column — not products.retailprice — is what the store catalogue, the
|
||||
// customer app and each order line read. The result was a catalogue
|
||||
// where nothing had a price and every order booked an amount of 0.
|
||||
locations = append(locations, models.Productlocations{
|
||||
Tenantid: req.Tenantid,
|
||||
Locationid: req.Locationid,
|
||||
@@ -300,6 +305,7 @@ func (s *productService) ImportCatalogueProduct(reqs []models.ImportCataloguePro
|
||||
Quantity: req.Quantity,
|
||||
Stocktype: req.Stocktype,
|
||||
Status: req.Status,
|
||||
Price: float32(req.Retailprice),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user