Jump to content

invoice date = order date - PS 1.5.3.1. this is wrong, how to change to generating date ?


Recommended Posts

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

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

  • 10 months later...

<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

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

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 by eleazar (see edit history)
Link to comment
Share on other sites

  • 7 months later...

 

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

×
×
  • Create New...