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
NEW - Shipping address to invoice #22832
NEW - Shipping address to invoice #22832
Conversation
very useful feature. thank you very much. |
…EW---Shipping-address-to-invoice
Great. |
In my case, I only display it if it is different from the billing address! Should there always be a delivery address even if it is the same? Dans mon cas je ne l'affiche que si elle est différente de l'adresse de facturation! Faut il qu'il y ai toujours une adresse de livraison même si elle est la même? |
…EW---Shipping-address-to-invoice
…EW---Shipping-address-to-invoice
@eldy it's done and I improved the code |
…EW---Shipping-address-to-invoice
…EW---Shipping-address-to-invoice
htdocs/admin/pdf_other.php
Outdated
@@ -69,6 +69,10 @@ | |||
dolibarr_set_const($db, "INVOICE_ADD_SWISS_QR_CODE", GETPOST("INVOICE_ADD_SWISS_QR_CODE", 'int'), 'chaine', 0, '', $conf->entity); | |||
dolibarr_del_const($db, "INVOICE_ADD_ZATCA_QR_CODE", $conf->entity); | |||
} | |||
if (GETPOSTISSET('DOC_SHOW_SHIPPING_ADDRESS')) { |
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.
Do you mean INVOICE_SHOW_SHIPPING_ADDRESS instead of DOC_SHOW_SHIPPING_ADDRESS ?
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.
I have a change @eldy
As a clarification, at least in France, it is not a legal requirement to mention the delivery address on invoices when conducting B2B sales. This requirement is typically applicable when selling to consumers (B2C). Therefore, it would be beneficial to have a checkbox option on the invoice card, allowing to choose whether or not to include the delivery address for each specific invoice. Or maybe it could be controlled in the settings of what kind of client it is? Remeber that in B2B sales there can be many delivery adresses on one invoice. |
NEW|New [Shipping address to invoice]
Add shipping address to invoice
If a delivery address is defined, it is displayed.
If a billing address is defined, I consider that the delivery address is the one on which the invoice was made.