Skip to main content

Change Invoice Dates

More
12 years 11 months ago #127950 by GSW00d
Change Invoice Dates was created by GSW00d
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.

More
12 years 11 months ago - 12 years 11 months ago #127971 by Mohamed Thelji
Replied by Mohamed Thelji on topic Change Invoice Dates
Hi,

One solution would be to edit the "invoice" file of the "order" view of your back-end template and change the line :
Code:
<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_created,'%d %B %Y ');?><br/>
By :
Code:
<?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: 12 years 11 months ago by Mohamed Thelji.
The following user(s) said Thank You: GSW00d

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

More
12 years 11 months ago #128018 by GSW00d
Replied by GSW00d on topic Change Invoice Dates
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.

More
12 years 11 months ago #128036 by Jerome
Replied by Jerome on topic Change Invoice Dates
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.

More
12 years 11 months ago #128495 by GSW00d
Replied by GSW00d on topic Change Invoice Dates
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.

More
12 years 11 months ago #128517 by Xavier
Replied by Xavier on topic Change Invoice Dates
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.

More
12 years 10 months ago #130446 by GSW00d
Replied by GSW00d on topic Change Invoice Dates
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.

More
12 years 10 months ago #130467 by GSW00d
Replied by GSW00d on topic Change Invoice Dates
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.253 seconds
Powered by Kunena Forum