codbex / codbex-olympus

Enterprise Resource Planing
Eclipse Public License 2.0
0 stars 0 forks source link

[Hestia] Waste refactor #56

Closed MinaDoncheva closed 3 weeks ago

MinaDoncheva commented 1 month ago

Refactor Waste logic as goods that have been damaged during our delivery. So we should handle the replacement of damaged goods - the damaged amount of the product should be delivered to the client without charge.

MinaDoncheva commented 1 month ago

For refactor: we treated Waste as goods that have been found damaged and must be removed from the inventory. In this case we connected the Waste creation with an event that reduces the availability of the damaged product. For this refactor we change the point of view as the goods have been damaged in the delivery process, so they were already issued and removed from the availability.

For clarification:

MinaDoncheva commented 3 weeks ago

fixed with: