mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
Bugfixes presta, support for project specific number ranges
This commit is contained in:
parent
bcf2544735
commit
4eac5fbbdc
@ -29451,7 +29451,7 @@ function Firmendaten($field,$projekt="")
|
|||||||
$dbfield = "next_$type";
|
$dbfield = "next_$type";
|
||||||
$belegnr = $this->app->DB->Select("SELECT $dbfield FROM projekt WHERE id='$projekt' LIMIT 1");
|
$belegnr = $this->app->DB->Select("SELECT $dbfield FROM projekt WHERE id='$projekt' LIMIT 1");
|
||||||
if (!empty($belegnr)) {
|
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");
|
$this->app->DB->Update("UPDATE projekt SET $dbfield='$newbelegnr' WHERE id='$projekt' LIMIT 1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -278,7 +278,7 @@ class Shopimporter_Presta extends ShopimporterBase
|
|||||||
'articleid' => strval($order_row->product_reference),
|
'articleid' => strval($order_row->product_reference),
|
||||||
'name' => strval($order_row->product_name),
|
'name' => strval($order_row->product_name),
|
||||||
'quantity' => strval($order_row->product_quantity),
|
'quantity' => strval($order_row->product_quantity),
|
||||||
'price_netto' => strval($order_row->product_price),
|
'price_netto' => strval($order_row->unit_price_tax_excl),
|
||||||
'steuersatz' => $steuersatz
|
'steuersatz' => $steuersatz
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user