Jump to content

Where is shown in customer order, if they want an invoice


ElPasko

Recommended Posts

Hello,

Prestashop 8.1

Where can I find, in order page in backoffice, if the client wanted an invoice? Also, where in database is it stored?

How can I check it, if customer wants invoice without tax number or company name?

Also, I'm not doing invoices through prestashop, I'm using external software. I just need a way to specify which order has invoice.

 

Link to comment
Share on other sites

In a customer order, the request for an invoice is typically indicated by a specific section or checkbox related to invoice generation or billing. This section will usually be a part of the order details, outlining the required information for generating the invoice. For instance, the sales order might have a dedicated field to specify whether the customer wants an invoice or not, or a section where they can provide invoice-related details.

Link to comment
Share on other sites

Where can I find, in order page in backoffice, if the client wanted an invoice? Also, where in database is it stored?

- Invoices in PrestaShop are generated based on the order status, so you can manage which order statuses should trigger invoice generation. https://prnt.sc/_E3qgjpPT61

Once the invoice is generated in PrestaShop, and invoice icon starts showing in the order listing, you can also check the document section in the Order details page.

https://prnt.sc/abY4MWTNs7jY

https://prnt.sc/z5lUsrv3YXtA

Invoices are generated depending on the order status. If the status allows invoice generation, an entry is created in the `order_invoice` table and `invoice_number` column is updated in the `orders` table, and the PDF is generated at runtime when the customer clicks "Download Invoice" in the order section.

 

How can I check it, if customer wants invoice without tax number or company name?

- Tax number and company are part of customer address so you check the address format of the country and not make them required and verify these during invoice generation and if these contains valid data you can utilize this. https://prnt.sc/lrLGaSGJ-hYN

 

Also, I'm not doing invoices through prestashop, I'm using external software. I just need a way to specify which order has invoice.

- You can manage this either utilizing the order-status for which you have allowed the invoice generation or you can check the entry for `invoice_number` column is in `orders` table.

Link to comment
Share on other sites

  • 2 weeks later...
Posted (edited)

PrestaShop doesn’t natively track if a customer explicitly requests an invoice unless you add a custom checkout field.

If you added such a field, check the order’s customer messages in the back office or look for custom fields in the database.

To see if a customer provided tax info, check the company name and VAT number in the address table. If these are empty, they likely don’t require a formal invoice.

Since you use external invoicing software, a good practice is to create a custom order status like “Invoice Requested” to mark orders needing invoices for easy tracking.

 

https://medicalbillingservices.company/

Edited by Andrew987
set points (see edit history)
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...