Jump to content

Invoices cuestion


eZcusas

Recommended Posts

I have a question about Prestashop that I need to resolve. Why is the invoice date generated with the date on which the order was placed, rather than when the invoice was created?

For example, if I receive an order on January 10 and I send the invoice and the order on January 12, why does the invoice show the date January 10? Is there any legal way to fix this?

Link to comment
Share on other sites

  • 3 weeks later...

Hello,

In PrestaShop, the invoice date is intentionally set to the order date by default. This is the standard behavior and is done for legal and accounting consistency (especially for VAT reporting). PrestaShop only generates the invoice after the order is validated, but it uses the order date as the invoice date.

Can this be changed? Technically: yes, with a custom override or module.

Legally: this depends on your country. In many EU countries, the invoice date must match the taxable event date, which is usually the order/payment date.

Before changing this behavior, you should confirm with your accountant or tax authority. Changing invoice dates incorrectly can lead to VAT compliance issues.

Link to comment
Share on other sites

Hi.

The invoice date is taken from the ps_order_invoice table and the date_add column. If you have set the order states to generate the invoice when the order is created, the order creation date will be written. If you cancel the invoice generation when the status is "in preparation" and set the invoice generation when the order status changes, for example "payment received", the date will be created when the status changes.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...