guest* Posted March 20, 2013 Share Posted March 20, 2013 Hi, I don't know if this is a bug or not,but all my invoices are printing the order date on it. As I send order only when payment is effected AND goods available, so the invoices should have on them the print date and not the order date. Is this an issue, or something I missed that can be set ? In PS 1.4. the generating date was printed on the invoice. Isn't it this possible anymore ? Thxs. for help. Link to comment Share on other sites More sharing options...
guest* Posted March 22, 2013 Author Share Posted March 22, 2013 Nobody else having this problem ? Is this a localization problem ? Is there any variable for printing_date instead of the order_date for pdf available ? Please can somebody help in here, as my invoices are having all wrong date ? Link to comment Share on other sites More sharing options...
HavanA Posted February 5, 2014 Share Posted February 5, 2014 <bump> Same question here. Sometimes customers order and then choose to pay via bankwire that may take a few days before payment arrives. The Dutch I.R.S. requires the correct invoice date (and not the ordering date) on the invoice. I have been trying things like '$paymentdate' but it seems that this variable does not exist? Any help is much appreciated! Link to comment Share on other sites More sharing options...
eleazar Posted February 5, 2014 Share Posted February 5, 2014 To fill in the print date use this instead: {$smarty.now|date_format:"%d.%m.%Y"} Link to comment Share on other sites More sharing options...
HavanA Posted February 5, 2014 Share Posted February 5, 2014 Thanks for your reply! Could it be that this date changes every day (to "today")? If so, that would mean the invoice date is not set steady. Because when I open older invoices it seems that the date of today is set as invoice date? Link to comment Share on other sites More sharing options...
eleazar Posted February 9, 2014 Share Posted February 9, 2014 (edited) Exactly! As the pdf files aren't saved but generated new every time you push the button, the current date would change. To avoid this you may add a request if an invoice date was already stored in the database: {if isset($order_invoice->date_add)} {$order_invoice->date_add|date_format:"%d.%m.%Y"} {else} {$smarty.now|date_format:"%d.%m.%Y"} {/if} Edited February 9, 2014 by eleazar (see edit history) Link to comment Share on other sites More sharing options...
HavanA Posted February 9, 2014 Share Posted February 9, 2014 Thanks eleazar, this works! Link to comment Share on other sites More sharing options...
odeen Posted October 9, 2014 Share Posted October 9, 2014 Exactly! As the pdf files aren't saved but generated new every time you push the button, the current date would change. To avoid this you may add a request if an invoice date was already stored in the database: {if isset($order_invoice->date_add)} {$order_invoice->date_add|date_format:"%d.%m.%Y"} {else} {$smarty.now|date_format:"%d.%m.%Y"} {/if} Hello, i would like to ask if i can set invoice issue date to order state. For example we are using state "Prepared for shipping" and in this state we are printing the invoices. But invoices have bad issue date because when they have beent placed by customers, goods were not in stock. So the due date is also wrong if we expedite it after a week and due date for invoice is set to a week. How can i manage this please? Link to comment Share on other sites More sharing options...
Recommended Posts