invoice date is wrong - rechnungsdatum ist falsch

29.09.2011 14:41
#1
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
invoice date is wrong - rechnungsdatum ist falsch

Shop Informationen: Datumformat yyyy-mm-dd

In der Rechnung erscheint:

--------
Rechnung

Nr 00000017
Bestellung vom yyyy-mm-dd
--------

What is happen?


Here the print out in admin backend:

Rechnung
Nummer 00000017
Datum yyyy-mm-dd 14:27:14
Status Pending
Ip-Adresse xx.xx.xx.xxx ( i have x init here in forum)

Who is making this yyyy-mm-dd?

Where is the date of buying something? This joomshopping 3.2.7 is not nice.

-----------------------

HERE helping steps, but only first aid steps...

1. WRITE in Shop Informationen: Datumformat: Y-m-d
2. open generete_pdf_order.php
3. replace
OLD:
$pdf->MultiCell(80,4.5,_JSHOP_ORDER_SHORT_NR . " " . $order->order_number . "\n" . _JSHOP_ORDER_FROM . " " . $order->order_date,0,'R');

WITH:
$pdf->MultiCell(80,4.5,_JSHOP_ORDER_SHORT_NR . " " . $order->order_number . "\n" . _JSHOP_ORDER_FROM . " " . date($order->order_date, time()),0,'R');

Now our invoice has an usefull date, but it could not be correct date of making invoice... maybe.


Last change: 29.09.2011 15:52
 
29.09.2011 20:30
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: invoice date is wrong - rechnungsdatum ist falsch

1. change config
administrator/index.php?option=com_jshopping&controller=config&task=storeinfo

Date format: %d.%m.%Y

2. not change code.

 
01.10.2011 11:26
#3
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
Aw: invoice date is wrong - rechnungsdatum ist falsch

I use not install joomshopping 3.2.7.

I use UPDATE joomshopping x.x.x -> 3.2.7.

Here the store info part is wrong.

The value Datumformat (date format) will stored as order_date in object $order. Software developer can check this by using print_r($object).

So each user of joomshopping must change the code of generete_pdf_order.php.
The invoice business date will be in standard case stored in the free user filled field Datumformat, because in joomshopping each invoice will printed out without business date - business date information is from input text field Datumformat. This is an software design issue of UPDATE joomshopping 3.2.7. Maybe in full installation of joomshopping 3.2.7 this issue is no longer exist.

Therefore i see always my Y-m-d in my invoice instead 21.09.2011. Either i write in this Datumformat field my actual business date or i write my dateformat init. You can control it after saving and click on pdf preview link at bottom line.

The code change is an must. Now my invoice is correct with actual and formated business date.

In Deutsch:

Ich benutze nicht die Originalinstallation von joomshopping 3.2.7.

Ich benutze UPDATE joomshopping x.x.x -> 3.2.7.

Hier werden die Shop-Informationen fehlerhaft gespeichert.

Der Wert Datumformat (Date Format) wird als order_date im Objekt $order gespeichert. Ein Software-Entwickler kann dies durch den Einsatz von print_r ($ object) überprüfen.

Jeder Benutzer von joomshopping muss den Code der generete_pdf_order.php ändern.
Der Rechnung-Business-Termin wird im Standard-Fall in dem Freifeld Datumformat abgespeichert. In joomshopping wird jede Rechnung ohne Rechnungs-Datum gedruckt - weil das aktuelle Rechnungsdatum als Informationen aus dem Eingabetextfeld Datumformat geholt wird. Ist dieses Feld leer, bleibt auch das Rechnungsdatum leer. Dies ist ein Software-Design Fehler von UPDATE joomshopping 3.2.7. Vielleicht ist es in der vollständige Installation von joomshopping 3.2.7 geloest.

Deshalb sah ich vorher immer entweder kein Datum, mein gerade eingetragenes Datum oder mein Datumsformat Y-m-d auf meinem Rechnungen statt automatisch das aktuelle Datum. Entweder schreibe ich in diesem Bereich Datumformat meine eigentliches Rechnungsdatum oder ich schreibe mein dateformat. Es lässt sich nach dem Speichern und klicken auf pdf-Vorschau-Link ueberpruefen.

Der Code zu ändern ist ein Muss. Jetzt ist meine Rechnung korrekt mit Ist-und formatiertem Rechungsdatum.

Eine korrekte Rechnung ist in Deutschland und im Ausland Pflicht!


Joomla: 1.7
JoomShopping: 3.2.7
PHP: 5.2
MySQL: 5
Website Url: http://watches-germany.com/
 
01.10.2011 19:23
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: invoice date is wrong - rechnungsdatum ist falsch

I do not see errors.

 
02.10.2011 19:03
#5
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
Aw: invoice date is wrong - rechnungsdatum ist falsch

It does not matter. At least i tried your approach: it works with %d.%m.%Y without code changes. The idea with % sign is an unexpected simple solution. My code change is obsolete with this "%" trick.


Joomla: 1.7
JoomShopping: 3.2.7
PHP: 5.2
MySQL: 5
Website Url: http://watches-germany.com/
 
12.10.2011 05:55
#6
nameless
Joomshopping forum user no avatar
Name: nathanc
12.10.2011
Posts: 2
Quote
Aw: invoice date is wrong - rechnungsdatum ist falsch

I do not see a solution to this.

I have the same problem and it is showing the order date as, Order from 15.10/11/11.2011 when the correct version should be 10/11/11 it is set up as %m.%d.%Y in the shop info configuration.

Any advice please?


Joomla: 1.7
JoomShopping: not sure
PHP: 5.2
Website Url: naturesyouth.com
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.