Danke @Viol, das mit dem Rabatt bei Vorauskasse funktioniert nun in modified wie es soll.
1. Beim Import in CAO entsteht mir zwar die passende Rechnung mit Vorauskasse, und es wird folgende Zeile angelegt:
Text: 2,00% Rabatt - Stück: 1 - Preis: 0,92 statt -0,92Jetzt kann ich natürlich einen Minusbetrag händisch draus machen und dann ist die Rechnung gleich/richtig wie die Bestellung in mshop, aber das sollte doch der CAO-Connector selber richtig machen!?
Auch ist dem Rabatt keine Steuerbetrag zugewiesen. In der Konfiguration des Moduls für Rabatte bei Zahlungarten steht dazu: "Steuerklasse
Die Steuerklasse spielt keine Rolle und dient nur der Vermeidung einer Fehlermeldung."
*EDIT*
Habe nun die Steuerklasse auf "Standard" gestellt. Das passt nun mit Steuer in CAO und ohne einer mir ersichtlichen Fehlermeldung, jedoch wieder ein PLUS Betrag statt richtigerweise MINUS Betrag.
Im Import von CAO wird es richtig angezeigt, siehe Bild im Anhang. In CAO ist aber dann 69,18 der Endbetrag durch das hinzufügen des Rabatts.
Ich habe hier den Log vom letzten import bei Interesse von "mod_notice_2023-10-04.log
[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] NOTICE found
for URL
: /export
/cao_xtc
.php?user
=User und Passwort rausgenommen
&action
=orders_export
{} {}[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Undefined index
: order_from in
File: php Pfad rausgenommen
/export
/cao_xtc_functions
.php on Line
: 276 {} {}[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Backtrace
#0 - /export/cao_xtc.php called at Line 260 {} {}
[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] NOTICE found
for URL
: /export
/cao_xtc
.php?user
=User und Passwort rausgenommen
&action
=orders_export
{} {}[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Undefined index
: order_to in
File: php Pfad rausgenommen
/export
/cao_xtc_functions
.php on Line
: 277 {} {}[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Backtrace
#0 - php Pfad rausgenommen/export/cao_xtc.php called at Line 260 {} {}
[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] NOTICE found
for URL
: /export
/cao_xtc
.php?user
=User und Passwort rausgenommen
&action
=orders_export
{} {}[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Undefined index
: order_status in
File: php Pfad rausgenommen
/export
/cao_xtc_functions
.php on Line
: 278 {} {}[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Backtrace
#0 - php Pfad rausgenommen/export/cao_xtc.php called at Line 260 {} {}
[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] NOTICE found
for URL
: /export
/cao_xtc
.php?user
=User und Passwort rausgenommen
&action
=orders_export
{} {}[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Undefined variable
: _SESSION in
File: php Pfad rausgenommen
/inc
/html_encoding
.php on Line
: 44 {} {}[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Backtrace
#0 - php Pfad rausgenommen/export/cao_xtc_functions.php called at Line 2799 {} {}
[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Backtrace
#1 - php Pfad rausgenommen/export/cao_xtc_functions.php called at Line 312 {} {}
[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Backtrace
#2 - php Pfad rausgenommen/export/cao_xtc.php called at Line 260 {} {}
[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] NOTICE found
for URL
: /export
/cao_xtc
.php?user
=User und Passwort rausgenommen
&action
=orders_export
{} {}[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Trying to access
array offset on value of type
null in
File: php Pfad rausgenommen
/inc
/html_encoding
.php on Line
: 44 {} {}[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Backtrace
#0 - php Pfad rausgenommen/export/cao_xtc_functions.php called at Line 2799 {} {}
[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Backtrace
#1 - php Pfad rausgenommen/export/cao_xtc_functions.php called at Line 312 {} {}
[2023-10-04 17:46:50] [notice
] [modified
] [pid
:7501] Backtrace
#2 - php Pfad rausgenommen/export/cao_xtc.php called at Line 260 {} {} 2. Noch immer wird bei jedem Statusupdate in modified Shop das richtige Datum in der Email an den Kunden geschrieben. Status Update einer Bestellung durch CAO ► im Betreff der Email statt des Datums: "TuePMCESTE_October+0200ROctPMCEST".
Dazu im im Log "mod_warning_2023-10-04.log ist folgendes zu sehen:
[2023-10-04 16:58:21] [warning
] [modified
] [pid
:22306] WARNING found
for URL
: /export
/cao_xtc
.php?user
=XXXX
&password
=XXXX
{} {}[2023-10-04 16:58:21] [warning
] [modified
] [pid
:22306] Use of undefined
constant DATE_FORMAT - assumed
'DATE_FORMAT' (this will
throw an Error in a future version of PHP
) in
File: /inc
/xtc_date_short
.inc
.php on Line
: 32 {} {}[2023-10-04 16:58:21] [warning
] [modified
] [pid
:22306] Backtrace
#0 - /inc/xtc_date_long.inc.php called at Line 26 {} {}
[2023-10-04 16:58:21] [warning
] [modified
] [pid
:22306] Backtrace
#1 - /export/cao_xtc_functions.php called at Line 2417 {} {}
[2023-10-04 16:58:21] [warning
] [modified
] [pid
:22306] Backtrace
#2 - /export/cao_xtc.php called at Line 377 {} {} 3. Eine Frage allgemein noch, besteht die Möglichkeit ALLE Artikel, ALLE Hersteller und ALLE Kategorien (Zuordnungen) löschen?
Schönen Abend, Bernd
[
EDIT Tomcraft 17.10.2023: Skonto gegen Rabatt getauscht, siehe
Antwort #245.]