From 4eac5fbbdc7e20006baf272a6edac8a02f50df79 Mon Sep 17 00:00:00 2001 From: Andreas Palm Date: Sun, 29 Jan 2023 15:38:30 +0100 Subject: [PATCH] Bugfixes presta, support for project specific number ranges --- www/lib/class.erpapi.php | 2 +- www/pages/shopimporter_presta.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/lib/class.erpapi.php b/www/lib/class.erpapi.php index 4dcc75d8..de87fb3e 100644 --- a/www/lib/class.erpapi.php +++ b/www/lib/class.erpapi.php @@ -29451,7 +29451,7 @@ function Firmendaten($field,$projekt="") $dbfield = "next_$type"; $belegnr = $this->app->DB->Select("SELECT $dbfield FROM projekt WHERE id='$projekt' LIMIT 1"); if (!empty($belegnr)) { - $newbelegnr = $this->CalcNextNummer($dbvalue); + $newbelegnr = $this->CalcNextNummer($belegnr); $this->app->DB->Update("UPDATE projekt SET $dbfield='$newbelegnr' WHERE id='$projekt' LIMIT 1"); } } diff --git a/www/pages/shopimporter_presta.php b/www/pages/shopimporter_presta.php index f874464c..68fda8d6 100644 --- a/www/pages/shopimporter_presta.php +++ b/www/pages/shopimporter_presta.php @@ -278,7 +278,7 @@ class Shopimporter_Presta extends ShopimporterBase 'articleid' => strval($order_row->product_reference), 'name' => strval($order_row->product_name), 'quantity' => strval($order_row->product_quantity), - 'price_netto' => strval($order_row->product_price), + 'price_netto' => strval($order_row->unit_price_tax_excl), 'steuersatz' => $steuersatz ]; }