Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Datepicker on the invoice form just uses the wrong format. I configured everything to fit German Date formats. It works for other Dates as i can see. Mut the Datepicker on the invocie form still uses english:
Comments
Comment #2
marcoka CreditAttribution: marcoka commentedupdated to the latest dev
http://root.artwaves.de/sharex/2015-08-23_23-20-10.png
Datefield is wrong (en). Left shows the correct date in german.
Comment #3
marcoka CreditAttribution: marcoka commentednote. it seems the pdf settings are not saved and defaults are always loaded.
http://root.artwaves.de/sharex/2015-08-25_10-38-30.png
the invoice page uses
function erpal_commerce_ui_commerce_order_view($order, $view_mode) { ... }
That is why the whole PDF settings dont work because it uses wrong variable_get names.
If i edit the PDF settings on the invoice page nothing is used. If i edit the PDF settings on the order page, this data appears.
Comment #4
marcoka CreditAttribution: marcoka commentedComment #5
AndrewsizZ CreditAttribution: AndrewsizZ commentedHey marcoka,
thank you for report, we will check. Patches always welcome.
Comment #6
marcoka CreditAttribution: marcoka commentedNeed to make some Notes about variable setting names:
Settings Pages
http://dev.erpal-platform.de/admin/commerce/config/billy-order/pdf
calls:
http://dev.erpal-platform.de/admin/commerce/config/billy-invoice/pdf?des...
calls:
View Pages
http://dev.erpal-platform.de/order/3
calls:
http://dev.erpal-platform.de/invoice/4
calls:
it seems both admin/form pages have their own name for the settings
$settings = variable_get('erpal_order_pdf_text_settings', array());
$settings = variable_get('commerce_billy_pdf_text_settings', array());
BUT they share the same view function that loads
$settings = variable_get('commerce_billy_pdf_text_settings', array());
Comment #7
marcoka CreditAttribution: marcoka commentedit seems that the code just doesnt use the settings, it uses the address data.
for example if i replace this it will work. problem is that i am not sure how the logic works here.
what confuses me a bit is this code. it overrides $value so after the loop the last value of settings will be saved inside. what is the use ?
i think that maybe the values of $order->content are the right ones we should set? not sure
http://root.artwaves.de/sharex/2015-08-25_15-41-28.png
Comment #8
marcoka CreditAttribution: marcoka commentedComment #9
Yuri CreditAttribution: Yuri commented