Closed MinaDoncheva closed 3 weeks 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:
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.