product images added to the catalogue

This commit is contained in:
2026-08-11 15:05:27 +05:30
parent d35caf34d3
commit c179e4d642
9 changed files with 412 additions and 11 deletions

View File

@@ -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)
}