Good day, Following a recent upgrade of our EspoCRM and SalesPack version, we are seeing a different behaviour in invoice amounts.
Installation details (At time of last recorded error):
ESPO version 9.1.8
Sales Pack version 3.1.7
Advance Pack version 3.11.5
PHP version 8.3.8
MySQL version 8.0.35
Reproduction steps:
Go into an existing invoice that has a set Amount but no items (this is the way we have been using ESPO invoices for "simple" invoices)
Change any field (for example Invoice Date)
Behaviour seen:
Stream entry logging that the AMOUNT field is set to 0.00, THEN
Stream entry logging that the Invoice Date field (for example) was reset.
Behaviour expected:
Stream entry logging that the Invoice Date field (for example) was reset. But AMOUNT field should remain unchanged.
Logs:
There are no entries in the AppLog. I don't have access to other system-level logs outside of the UI.
Analysis:
We suspect this is because we only set invoice AMOUNT for simple invoices, and don't use items.
We have not seen this issue on invoices with items.
This seems to occur no matter what State the invoice is in (it even happens on Closed invoices)
Previously, when this "worked" without issues we were on ESPO 8.4.2, with a sales pack 2.6.6 and advanced pack 3.6.3. This was the version where the problem invoices were created.
It "feels" like a null-list check has been removed for the invoice item list before the invoice Amount is recalculated on save.
If you require additional details, please let me know. I have downloaded and installed the latest sales and advanced packs today and will continue to monitor.
Installation details (At time of last recorded error):
ESPO version 9.1.8
Sales Pack version 3.1.7
Advance Pack version 3.11.5
PHP version 8.3.8
MySQL version 8.0.35
Reproduction steps:
Go into an existing invoice that has a set Amount but no items (this is the way we have been using ESPO invoices for "simple" invoices)
Change any field (for example Invoice Date)
Behaviour seen:
Stream entry logging that the AMOUNT field is set to 0.00, THEN
Stream entry logging that the Invoice Date field (for example) was reset.
Behaviour expected:
Stream entry logging that the Invoice Date field (for example) was reset. But AMOUNT field should remain unchanged.
Logs:
There are no entries in the AppLog. I don't have access to other system-level logs outside of the UI.
Analysis:
We suspect this is because we only set invoice AMOUNT for simple invoices, and don't use items.
We have not seen this issue on invoices with items.
This seems to occur no matter what State the invoice is in (it even happens on Closed invoices)
Previously, when this "worked" without issues we were on ESPO 8.4.2, with a sales pack 2.6.6 and advanced pack 3.6.3. This was the version where the problem invoices were created.
It "feels" like a null-list check has been removed for the invoice item list before the invoice Amount is recalculated on save.
If you require additional details, please let me know. I have downloaded and installed the latest sales and advanced packs today and will continue to monitor.
Comment