Skip to content

Commit

Permalink
1.0.16
Browse files Browse the repository at this point in the history
-  Kdv muafiyet hatası giderildi
  • Loading branch information
Hasokeyk committed Jan 26, 2022
1 parent c01f414 commit 8e0c34b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/elogo_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ public function get_sample_invoice_array(){
'toplam_tutar' => 1000.00,
'kdv_tutar' => 180.00,
'kdv_oran' => 18.00,
'kdv_muhafiyet_kodu' => 223,
'kdv_muafiyet_kodu' => 223,
'para_birimi' => 'TRY',
'kur_fiyati' => "8.5",
'fatura_tip' => 'ISTISNA',
Expand Down Expand Up @@ -615,9 +615,9 @@ private function create_invoice_xml($p = []){
$TaxSubtotal->addChild('Percent', $p['fatura']['kdv_oran'], $xmlNs['cbc']);

$TaxCategory = $TaxSubtotal->addChild('TaxCategory', null, $xmlNs['cac']);
if(isset($p['fatura']['kdv_muhafiyet_kodu']) and $p['fatura']['kdv_muhafiyet_kodu'] != null){
$TaxCategory->addChild('TaxExemptionReasonCode', $p['fatura']['kdv_muhafiyet_kodu'], $xmlNs['cbc']);
$TaxCategory->addChild('TaxExemptionReason', $kdv_muhafiyet[$p['fatura']['kdv_muhafiyet_kodu']], $xmlNs['cbc']);
if(isset($p['fatura']['kdv_muafiyet_kodu']) and $p['fatura']['kdv_muafiyet_kodu'] != null){
$TaxCategory->addChild('TaxExemptionReasonCode', $p['fatura']['kdv_muafiyet_kodu'], $xmlNs['cbc']);
$TaxCategory->addChild('TaxExemptionReason', $kdv_muhafiyet[$p['fatura']['kdv_muafiyet_kodu']], $xmlNs['cbc']);
}
$TaxScheme = $TaxCategory->addChild('TaxScheme', null, $xmlNs['cac']);
$TaxScheme->addChild('Name', 'KDV GERCEK', $xmlNs['cbc']);
Expand Down Expand Up @@ -662,9 +662,9 @@ private function create_invoice_xml($p = []){

$TaxCategory = $TaxSubtotal->addChild('TaxCategory', null, $xmlNs['cac']);

if(isset($p['fatura']['kdv_muhafiyet_kodu']) and $p['fatura']['kdv_muhafiyet_kodu'] != null){
$TaxCategory->addChild('TaxExemptionReasonCode', $p['fatura']['kdv_muhafiyet_kodu'], $xmlNs['cbc']);
$TaxCategory->addChild('TaxExemptionReason', $kdv_muhafiyet[$p['fatura']['kdv_muhafiyet_kodu']], $xmlNs['cbc']);
if(isset($p['fatura']['kdv_muafiyet_kodu']) and $p['fatura']['kdv_muafiyet_kodu'] != null){
$TaxCategory->addChild('TaxExemptionReasonCode', $p['fatura']['kdv_muafiyet_kodu'], $xmlNs['cbc']);
$TaxCategory->addChild('TaxExemptionReason', $kdv_muhafiyet[$p['fatura']['kdv_muafiyet_kodu']], $xmlNs['cbc']);
}

$TaxScheme = $TaxCategory->addChild('TaxScheme', null, $xmlNs['cac']);
Expand Down

0 comments on commit 8e0c34b

Please sign in to comment.