update for Moadian plugin

This commit is contained in:
Gloomy 2025-08-08 11:46:55 +00:00
parent 676f65da86
commit 97052b2fd8

View file

@ -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)