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
1af809954c
commit
100024391d
@ -29439,7 +29439,7 @@ function Firmendaten($field,$projekt="")
|
||||
|
||||
$process_lock = $this->app->erp->ProzessLock("erpapi_getnextnummer");
|
||||
|
||||
$eigenernummernkreis = 0;
|
||||
$eigenernummernkreis = $this->app->DB->Select("SELECT eigenernummernkreis FROM projekt WHERE id='$projekt' LIMIT 1");
|
||||
$newbelegnr = '';
|
||||
if($eigenernummernkreis=='1')
|
||||
{
|
||||
|
@ -253,7 +253,7 @@ class Shopimporter_Presta extends ShopimporterBase
|
||||
if (!empty($cart['lieferadresse_land']) && $this->taxationByDestinationCountry) {
|
||||
$taxedCountry = $cart['lieferadresse_land'];
|
||||
}
|
||||
$lieferschwelle = $this->app->DB->Select("SELECT * FROM lieferschwelle WHERE empfaengerland='$taxedCountry' LIMIT 1");
|
||||
$lieferschwelle = $this->app->DB->SelectArr("SELECT * FROM lieferschwelle WHERE empfaengerland='$taxedCountry' LIMIT 1");
|
||||
if ($this->app->erp->IstEU($taxedCountry) || !empty($lieferschwelle['ueberschreitungsdatum'])) {
|
||||
$cart['ust_befreit'] = 1;
|
||||
} elseif ($this->app->erp->Export($taxedCountry)) {
|
||||
|
Loading…
Reference in New Issue
Block a user