update for Moadian plugin
This commit is contained in:
parent
676f65da86
commit
97052b2fd8
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue