mirakl bugfix protokoll, taxes

This commit is contained in:
OpenXE 2024-07-19 12:17:24 +02:00
parent 22620698a1
commit f1400c4892
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;