Prestashop: No invoice number when updating an order with API

Created on 27 Aug 2018  路  12Comments  路  Source: PrestaShop/PrestaShop

What's the bug ?
Since some version in branch 1.7.3, when we change the status of an order to "Shipped" via the API, the invoice_number is not updated, but the invoice is generated.
Consequences : The backoffice shows a "no invoice" button, but the invoice is indeed there in the "documents" tab. The invoice also doesn't have a invoice date...
If we do the same thing from the Back Office, everything works as expected.

The "Shipped" status has the checkbox "Generate invoice" checked.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new order from the backoffice
  2. Change the status to "Shipped"

Screenshots
Order before the status update
Settings of the order states
Order after the status update
Document tabs after the status update

Additionnal information
PrestaShop version: 1.7.3.3 (but the 1.7.4.2 has the bug too)
PHP version: 7.0 (7.2 for the 1.7.4.2 platform)

1.7.4.2 Bug Minor Order Order statuses To Do WS

All 12 comments

Hi @Ludofloria,

I manage to reproduce the issue with the last version 1.7.4.2.
image
We will see how to fix it.
https://github.com/PrestaShop/PrestaShop/issues/10069

Best regards, Khouloud

Have you find why ? it's very complicated because without invoice number, invoice is not legal and my clients do not want to pay them, thanks for your help,
Regards

Hi @Ludofloria,

Sorry, not yet.
It is added to our bug roadmap.
Thanks for your understanding & your patience!

Hello !
Any update ?

@Ludofloria, sorry not yet.
Thanks for your understanding!

@khouloudbelguith Any update on this issue?

@Ludofloria, sorry not yet.
There are some major issues to solve before this one.
So, it will probably not solved right now.
But PrestaShop is an open-source project, so it can be solved before if someone submits a pull request to solve it.

Thanks for your understanding!

For now, we managed to bypass this bug by using a custom module that allows us to even edit the template of the generated invoice ;)

@Ludofloria, thanks for your feedback.
What is the exact name of this module?

Thanks!

@Ludofloria, thanks!

I come back...
In fact, the module doesn't fix the issue. So we still doesn't have the invoice number, nor an invoice date.
Thus, our invoices aren't good and our clients might refuse to pay us...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

khouloudbelguith picture khouloudbelguith  路  3Comments

vincent-dp picture vincent-dp  路  3Comments

Van-peterson picture Van-peterson  路  3Comments

itisco picture itisco  路  3Comments

hiousi picture hiousi  路  3Comments