Change Invoice Dates

  • Posts: 42
  • Thank you received: 2
11 years 2 months ago #127950

Hi!

How can I change my order created dates, as we create the invoice only once we receive an electronic funds transfer and the date has to match this.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #127971

Hi,

One solution would be to edit the "invoice" file of the "order" view of your back-end template and change the line :

<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_created,'%d %B %Y ');?><br/>
By :
<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_modified,'%d %B %Y ');?><br/>
Then the date that will be sent, will be the date of the last time you modified your order.

Last edit: 11 years 2 months ago by Mohamed Thelji.
The following user(s) said Thank You: GSW00d

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 2
11 years 2 months ago #128018

That is helpful thank you. One problem is that we sometimes edit, correct or alter and this shows up on the modify date. How can we edit the modify date?

Please Log in or Create an account to join the conversation.

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
11 years 2 months ago #128036

Hi,

You can't.
These field are managed directly by the HikaShop core.
When you modify an order, the modification date will be automatically set.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 2
11 years 2 months ago #128495

Thank you for that tip on editing the "invoice" file of the "order" view. It will be very helpful and will automatically fix 90% of our problems. We need to generate tax reports however, so we need to be able to fix some of the orders that were modified a second time.

Is there anyway we could fix these order dates in the MySQL backend? Which records would we look for?

Appreciate it.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #128517

Hi,

You can edit the order modification date via the mass actions, System > Mass actions.
It allow you to edit what you want on product, categories, orders, ...

So configure it on the data "Order" and change the value of the field "order_modified" in the action "update values".

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 2
11 years 1 month ago #130446

That is very helpful! How should I set the INT value for a order_modified? Say I was changing 2013-10-31 16:28 to 2013-10-30 16:28?

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 2
11 years 1 month ago #130467

Appreciate the help... but I found the easiest way was to drill down into the MySQL backend via phpMyAdmin, convert the datetime to int (from human readable into unix epoch) and edit the "order_modified" field with this value.

The "Display" value in mass actions would have been ideal, as it allowed me to edit the "order_created" date. Unfortunately, it didn't allow me to save changed to the "order_modified" record.

Thank again,
Bruce Atkinson

Please Log in or Create an account to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum