You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After adding casts to the line, the http error is gone, but when I try to update the value for the recurrent supplier invoice line, it is not updated.
fourn/facture/card-rec.php?id=1
POST
action=updateline&mode=&id=1&lineid=1&type=1&special_code=0&fk_parent_line=&productid=75&product_desc=&date_start_fill=0&date_end_fill=0&fourn_ref=&fournprice=&tva_tx=0&price_ht=70%2C51&qty=1&remise_percent=&save=Enregistrer
The original price for the line is 75.51 .
No error is shown nor logged.
$object->updateline() is called with the updated price, and returns 0.
The line is not updated because updateline requires that the status is SUSPENDED and the status of the recurring invoice is NULL.
IMHO, either the UI should not propose to edit the lines, or the recurrent invoice model should be effectively editable (the latter is more logical - it allows updating a recurrent supplier invoice without deactivating it).
In updateline, to bypass the issue, I updated the test to:
if ($this->status == null || $this->status == self::STATUS_SUSPENDED) {
Dolibarr Version
19.0.2
Environment PHP
8.2.20
Environment Database
No response
Steps to reproduce the behavior and expected behavior
No response
Attached files
No response
The text was updated successfully, but these errors were encountered:
Bug
Got error 500:
For line
This is fixed in the dev version 21.
After adding casts to the line, the http error is gone, but when I try to update the value for the recurrent supplier invoice line, it is not updated.
The original price for the line is 75.51 .
No error is shown nor logged.
$object->updateline() is called with the updated price, and returns 0.
The line is not updated because updateline requires that the status is SUSPENDED and the status of the recurring invoice is NULL.
IMHO, either the UI should not propose to edit the lines, or the recurrent invoice model should be effectively editable (the latter is more logical - it allows updating a recurrent supplier invoice without deactivating it).
In updateline, to bypass the issue, I updated the test to:
Dolibarr Version
19.0.2
Environment PHP
8.2.20
Environment Database
No response
Steps to reproduce the behavior and expected behavior
No response
Attached files
No response
The text was updated successfully, but these errors were encountered: