I cannot create a credit note in Magento 2.4.6-p1. Someone now how to solve this?
This is the log file:
#26 {main} {"exception":"[object] (DivisionByZeroError(code: 0): Division by zero at /home/SERVER/domains/WEBSITE/public_html/vendor/magento/module-sales/Model/Order/Creditmemo/Total/Tax.php:139)"} []
Issue can also be found here:
https://github.com/magento/magento2/issues/36800
But I do not see any solution.
Hello @alexander_jorda
Try this if that works for you
vendor/magento/module-sales/Model/Order/Creditmemo/Total/Tax.php
$this->setTaxAmount(0);
Thanks for your answer.
I have upgraded to 2.4.6-p1, but the issue is still their.
I could not find option 2...
Hi,
Actually you can find solution there https://github.com/magento/magento2/issues/36800
If you look more closely you can find here the patch https://github.com/magento/magento2/pull/37226/files
Hope it helps