-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
throw RestException(500) if update of invoice fails #32134 #32190
throw RestException(500) if update of invoice fails #32134 #32190
Conversation
Even though @natalieboucher said it worked in version 19, I decided to make invoice API use same structure as order API, and from v18 because v18 are still released as LTS. |
devcamp munich 2024 |
@JonBendtsen it will throw a phan error in develop like in your closed PR |
Are orders any different than invoices? commande/class/api_orders.class.php
compta/facture/class/api_invoices.class.php
Because all I am doing is making the code pretty identical The public function update( seems pretty similar between orders and invoices Am I wrong in expecting that phan would also throw an error if the change was in the existing order code? I also actually tested this code, and with it I do get an error in the API, where as without it I get http code 200 as if no errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok for me thanks !
FIX #32134 Updating Invoice Notes
throw RestException(500) if update of invoice fails