product images added to the catalogue
This commit is contained in:
@@ -1354,6 +1354,13 @@ func (r *orderRepository) CreateOrder(data models.Orders) (models.Orders, error)
|
||||
return models.Orders{}, err
|
||||
}
|
||||
|
||||
// An app order depletes the same shelf the counter sells from, so the tills
|
||||
// at that outlet need to know as much as they do after a counter sale. This
|
||||
// half was the one that would have been forgotten: it is easy to think of
|
||||
// the catalogue as a POS concern, and a till overselling something the app
|
||||
// just took is exactly the failure the push exists to prevent.
|
||||
notifyCatalogueChanged(created.Locationid)
|
||||
|
||||
return r.reloadOrder(created.Orderheaderid)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user