From c2fd6366489104952c494b081a5ed08192bf38fb Mon Sep 17 00:00:00 2001 From: pero1203 Date: Wed, 16 Sep 2020 09:48:42 +0200 Subject: [PATCH] Popravek za paypal pri klicu cebelice --- frontend/payments/cebelica/InvoiceFox/cebelcaApi.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/payments/cebelica/InvoiceFox/cebelcaApi.php b/frontend/payments/cebelica/InvoiceFox/cebelcaApi.php index cef910a34..c8e4424c1 100644 --- a/frontend/payments/cebelica/InvoiceFox/cebelcaApi.php +++ b/frontend/payments/cebelica/InvoiceFox/cebelcaApi.php @@ -47,12 +47,14 @@ function racunIzPredracuna($api,$podatki,$proformaId,$lang='si') { // nastavi, da je plačano $api->markPayed($header); - // kartica in gotovina se potrjujeta - if($tip_placila == 3){ + // kartica in paypal se potrjujeta + if($tip_placila == 3 || $tip_placila == 5){ + $id_location = ($tip_placila == 5) ? 4 : 2; + $glava = array ( 'id' => $invId, - "id_location" => 2, + "id_location" => $id_location, "id_register" => 1, "fiscalize" => 1, 'op-tax-id' => IZDAJATELJ_DAVCNA,