[Skip to main content](#vessel-content)

#   Billing - dates change

##

- **[G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")**
- [![G&#95;Minor&#95;Records's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile") Topic Author
- [ Offline](/forum/user/44179-g-minor-records)

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 2 months ago [\#248633](#248633) by [G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")  *[Billing - dates change](/forum/35-orders-management/886180-billing-dates-change#248633 "Hello everyone!  We are currently encountering a pretty serious issue with the dates of the invoices which we can print from the back-end of our shop:  Whenever we re-print invoices / bills a second time they will change the displayed date to the current date or apparently to any random date too (we had at least one case reported by an employee).  This issue has arised together with our upgrade to the business version of hikashop over a month ago and has caused terrible chaos already. We'd be very thankful for any hints about system settings that could be influencing the billing dates as we're quite positive that this is not a bug or error.")* was created by *[G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")*

Hello everyone!

We are currently encountering a pretty serious issue with the dates of the invoices which we can print from the back-end of our shop:

Whenever we re-print invoices / bills a second time they will change the displayed date to the current date or apparently to any random date too (we had at least one case reported by an employee).

This issue has arised together with our upgrade to the business version of hikashop over a month ago and has caused terrible chaos already. We'd be very thankful for any hints about system settings that could be influencing the billing dates as we're quite positive that this is not a bug or error.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE4MC1iaWxsaW5nLWRhdGVzLWNoYW5nZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 2 months ago -  10 years 2 months ago [\#248641](#248641) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Billing - dates change](/forum/35-orders-management/886180-billing-dates-change#248641 "Hello everyone!  We are currently encountering a pretty serious issue with the dates of the invoices which we can print from the back-end of our shop:  Whenever we re-print invoices / bills a second time they will change the displayed date to the current date or apparently to any random date too (we had at least one case reported by an employee).  This issue has arised together with our upgrade to the business version of hikashop over a month ago and has caused terrible chaos already. We'd be very thankful for any hints about system settings that could be influencing the billing dates as we're quite positive that this is not a bug or error.")*

Hello,

If I have good memory, it's first time, we have these kind of issue report...
Do you have some **override view** on your **invoice** ?

Check this in **Components** =&gt; **HikaShop** =&gt; **Configuration**, and in **Display** dropdown select **Views**
Use your **three filters dropdown**, like on this screenshot :

[ ![InvoiceView.png](/forum/attachment/33226) ](/forum/attachment/33226 "InvoiceView.png")

If you see a **trash icon** on your **invoice** file, try to remove it (*don't forget to save aside your custom view*).
I hope that will solve your issue.

Awaiting news from you.

Regards

- [ ![InvoiceView.png](/forum/attachment/33226) ](/forum/attachment/33226 "InvoiceView.png") [ ](/forum/attachment/33226?download=1 "InvoiceView.png")

Last edit: 10 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

The following user(s) said Thank You: [G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE4MC1iaWxsaW5nLWRhdGVzLWNoYW5nZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")**
- [![G&#95;Minor&#95;Records's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile") Topic Author
- [ Offline](/forum/user/44179-g-minor-records)

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 2 months ago -  10 years 2 months ago [\#248751](#248751) by [G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")  Replied by *[G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")* on topic *[Billing - dates change](/forum/35-orders-management/886180-billing-dates-change#248751 "Hello everyone!  We are currently encountering a pretty serious issue with the dates of the invoices which we can print from the back-end of our shop:  Whenever we re-print invoices / bills a second time they will change the displayed date to the current date or apparently to any random date too (we had at least one case reported by an employee).  This issue has arised together with our upgrade to the business version of hikashop over a month ago and has caused terrible chaos already. We'd be very thankful for any hints about system settings that could be influencing the billing dates as we're quite positive that this is not a bug or error.")*

Thanks for your reply!

The issue in the picture: The "unchangeable" date in the order (order_created) on the left and the displayed date on the invoice. In this case the date on the invoice equals the date of the manual change of the order status from "open" to "received" ("bestätigt" in German). edit: while the invoice date should always equal the date when the order was created OR at least stay the same date - and should especially NOT change around whenever something happens in the course of the order (e.g. customer cancelles - invoice date changes?!? why?)

I deleted the customizations and checked the date on the bills again - the echo for the date displayed on the invoice depends on the terms $this-&gt;element-&gt;order_created and $this-&gt;element-&gt;order_created and apparently since our upgrade to the business version there seems to be an additional IF{} differentiation that sometimes changes the date on the invoice to other dates from the order-history

We could solve the problem by eliminating the IF{} clause, which for now does the trick. Code:

if(!empty($this-&gt;element-&gt;order_invoice_created)) { echo JText::_('DATE').': '.hikashop_getDate($this-&gt;element-&gt;order_created,'%d %B %Y'); }else{ echo JText::_('DATE').': '.hikashop_getDate($this-&gt;element-&gt;order_created,'%d %B %Y'); } ?&gt;

- [ ![Untitled-1.jpg](/forum/attachment/33257) ](/forum/attachment/33257 "Untitled-1.jpg") [ ](/forum/attachment/33257?download=1 "Untitled-1.jpg")

Last edit: 10 years 2 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE4MC1iaWxsaW5nLWRhdGVzLWNoYW5nZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

10 years 2 months ago [\#248759](#248759) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Billing - dates change](/forum/35-orders-management/886180-billing-dates-change#248759 "Hello everyone!  We are currently encountering a pretty serious issue with the dates of the invoices which we can print from the back-end of our shop:  Whenever we re-print invoices / bills a second time they will change the displayed date to the current date or apparently to any random date too (we had at least one case reported by an employee).  This issue has arised together with our upgrade to the business version of hikashop over a month ago and has caused terrible chaos already. We'd be very thankful for any hints about system settings that could be influencing the billing dates as we're quite positive that this is not a bug or error.")*

Hi,

It is not a random date and the system works like it is supposed to be.
The order_created date is the date when the order was placed by the customer (at the end of the checkout, before redirecting to the payment gateway). So that's the date of the creation of the order.
The order_invoice_created is the date when the invoice was created and the invoice number generated (after the payment of the customer).
Those two dates can be similar, but it's possible that the customer pays the order later on and thus you get an invoice creation date different from the order creation date.
In fact when you print the invoice of an order before the order is confirmed and the invoice is created, it is not really an invoice. It's a "quote". We still display it as "invoice" because merchants use HikaShop in lots of different ways where it sometimes make sense to print an invoice before the order is confirmed.

The invoice creation date and the order creation date do not change when an order is cancelled. You must be wrong. Or you have created some mass actions or custom plugin to change these dates when the order status changes, which I don't recommend.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE4MC1iaWxsaW5nLWRhdGVzLWNoYW5nZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")**
- [![G&#95;Minor&#95;Records's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile") Topic Author
- [ Offline](/forum/user/44179-g-minor-records)

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 2 months ago [\#248825](#248825) by [G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")  Replied by *[G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")* on topic *[Billing - dates change](/forum/35-orders-management/886180-billing-dates-change#248825 "Hello everyone!  We are currently encountering a pretty serious issue with the dates of the invoices which we can print from the back-end of our shop:  Whenever we re-print invoices / bills a second time they will change the displayed date to the current date or apparently to any random date too (we had at least one case reported by an employee).  This issue has arised together with our upgrade to the business version of hikashop over a month ago and has caused terrible chaos already. We'd be very thankful for any hints about system settings that could be influencing the billing dates as we're quite positive that this is not a bug or error.")*

Hello Nicolas!

Thanks for clarifying. Before Philip's answer I wasn't shure where to look (I'm not exactly a programmer) but I'm starting to understand the problem.

Of course, the dates were not really "random", but we have not been able to see a pattern until Philip pointed out the php-customizations. We are a small company and do most of the work ourselves, but we had help with the set-up and don't know about all the details.

Indeed, some of the "invoices" have been printed before payment and have subsequently been showing the "correct" date for our purposes. I checked and in those cases where customers payed later (e.g. via bank transaction) the dates have been wrong on the re-prints, like you pointed out.

To put matters in simple words: For our needs, the "invoice" needs to show the date of the creation of the order, regardless of any payments, changes in the order status or anything else and should therefore always correspond with the "order created" date.

1) We receive an order
2) We print the delivery note and invoice twice - one for the customer (shipment), one for the books
3) When payment arrives, we send the shipment from our outbox.

Paypal arrives instantly and auto-changes the order status to 'payed', cash payments and bank transactions have to be set manually. In these cases the date of the invoice should also be the order_created date. Does our primitive work-around do the trick?

Thanks guys!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE4MC1iaWxsaW5nLWRhdGVzLWNoYW5nZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

10 years 2 months ago [\#248829](#248829) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Billing - dates change](/forum/35-orders-management/886180-billing-dates-change#248829 "Hello everyone!  We are currently encountering a pretty serious issue with the dates of the invoices which we can print from the back-end of our shop:  Whenever we re-print invoices / bills a second time they will change the displayed date to the current date or apparently to any random date too (we had at least one case reported by an employee).  This issue has arised together with our upgrade to the business version of hikashop over a month ago and has caused terrible chaos already. We'd be very thankful for any hints about system settings that could be influencing the billing dates as we're quite positive that this is not a bug or error.")*

Hi,

Yes, no problem. That's what I would have recommended to do if you needed to always see the order_created date in your invoices.

The following user(s) said Thank You: [G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE4MC1iaWxsaW5nLWRhdGVzLWNoYW5nZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")**
- [![G&#95;Minor&#95;Records's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile") Topic Author
- [ Offline](/forum/user/44179-g-minor-records)

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 2 months ago [\#248885](#248885) by [G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")  Replied by *[G\_Minor\_Records](/forum/user/44179-g-minor-records "View G&#95;Minor&#95;Records's Profile")* on topic *[Billing - dates change](/forum/35-orders-management/886180-billing-dates-change#248885 "Hello everyone!  We are currently encountering a pretty serious issue with the dates of the invoices which we can print from the back-end of our shop:  Whenever we re-print invoices / bills a second time they will change the displayed date to the current date or apparently to any random date too (we had at least one case reported by an employee).  This issue has arised together with our upgrade to the business version of hikashop over a month ago and has caused terrible chaos already. We'd be very thankful for any hints about system settings that could be influencing the billing dates as we're quite positive that this is not a bug or error.")*

Well - problem solved!

Thanks everyone ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE4MC1iaWxsaW5nLWRhdGVzLWNoYW5nZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
