mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 06:41:14 +01:00
mirakl bugfix protokoll, taxes
This commit is contained in:
parent
22620698a1
commit
f1400c4892
@ -2159,6 +2159,7 @@ class Remote {
|
||||
}
|
||||
|
||||
public function getDataToSendForUpdateOrder(int $shopId, int $orderId): ?OrderStatusUpdateRequest
|
||||
{
|
||||
$orderArr = $this->app->DB->SelectRow("SELECT `zahlungsweise`, `shopextid` FROM `auftrag` WHERE `id` = $orderId LIMIT 1");
|
||||
if (empty($orderArr))
|
||||
return null;
|
||||
|
@ -175,7 +175,6 @@ class Shopimporter_Mirakl extends ShopimporterBase {
|
||||
if (!empty($importerSettings['einstellungen_json'])) {
|
||||
$einstellungen = json_decode($importerSettings['einstellungen_json'], true);
|
||||
}
|
||||
$this->protocol = $einstellungen['felder']['protokoll'];
|
||||
$this->apiKey = $einstellungen['felder']['apikey'];
|
||||
$this->shopUrl = rtrim($einstellungen['felder']['shopurl'], '/') . '/';
|
||||
$this->mirakl_shopid = $einstellungen['felder']['mirakl_shopid'];
|
||||
@ -545,7 +544,7 @@ class Shopimporter_Mirakl extends ShopimporterBase {
|
||||
if($tax->rate > $steuersatz) {
|
||||
$steuersatz = $tax->rate;
|
||||
}
|
||||
switch ($order->row->taxes[0]->code) {
|
||||
switch ($tax->code) {
|
||||
case $this->reducedTaxId:
|
||||
$umsatzsteuer_typ = 'ermaessigt';
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user