Closed davide-alghi closed 2 months ago
I think related module record status should be checked: stock should be updated only if related module record status is PLL_ACCEPTED
here https://github.com/YetiForceCompany/YetiForceCRM/blob/4b5e4244b8338c837a8132ff12686f29f222d89b/modules/IStorages/handlers/RecalculateStockHandler.php#L30
and here https://github.com/YetiForceCompany/YetiForceCRM/blob/4b5e4244b8338c837a8132ff12686f29f222d89b/modules/IStorages/handlers/RecalculateStockHandler.php#L36
I think related module record status should be checked: stock should be updated only if related module record status is PLL_ACCEPTED
here https://github.com/YetiForceCompany/YetiForceCRM/blob/4b5e4244b8338c837a8132ff12686f29f222d89b/modules/IStorages/handlers/RecalculateStockHandler.php#L30
and here https://github.com/YetiForceCompany/YetiForceCRM/blob/4b5e4244b8338c837a8132ff12686f29f222d89b/modules/IStorages/handlers/RecalculateStockHandler.php#L36