diff --git a/hesabixCore/src/Controller/Plugins/TaxSettingsController.php b/hesabixCore/src/Controller/Plugins/TaxSettingsController.php index cf38540..54c6c6a 100644 --- a/hesabixCore/src/Controller/Plugins/TaxSettingsController.php +++ b/hesabixCore/src/Controller/Plugins/TaxSettingsController.php @@ -1199,9 +1199,11 @@ class TaxSettingsController extends AbstractController } $InvoiceType = 2; + $invoicePayType = null; if ($buyerNationalId && $buyerEconomicCode) { $InvoiceType = 1; + $invoicePayType = 1; } $dateTime = new DateTime(); @@ -1233,7 +1235,7 @@ class TaxSettingsController extends AbstractController ->setTvam($totalTax) ->setTodam($data['shippingCost']) ->setTbill($data['finalTotal']) - ->setSetm(1) + ->setSetm($invoicePayType) ->setCap(null) ->setInsp(null) ->setTvop(null)