update for Moadian plugin
This commit is contained in:
parent
676f65da86
commit
97052b2fd8
|
@ -1199,9 +1199,11 @@ class TaxSettingsController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
$InvoiceType = 2;
|
$InvoiceType = 2;
|
||||||
|
$invoicePayType = null;
|
||||||
|
|
||||||
if ($buyerNationalId && $buyerEconomicCode) {
|
if ($buyerNationalId && $buyerEconomicCode) {
|
||||||
$InvoiceType = 1;
|
$InvoiceType = 1;
|
||||||
|
$invoicePayType = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$dateTime = new DateTime();
|
$dateTime = new DateTime();
|
||||||
|
@ -1233,7 +1235,7 @@ class TaxSettingsController extends AbstractController
|
||||||
->setTvam($totalTax)
|
->setTvam($totalTax)
|
||||||
->setTodam($data['shippingCost'])
|
->setTodam($data['shippingCost'])
|
||||||
->setTbill($data['finalTotal'])
|
->setTbill($data['finalTotal'])
|
||||||
->setSetm(1)
|
->setSetm($invoicePayType)
|
||||||
->setCap(null)
|
->setCap(null)
|
||||||
->setInsp(null)
|
->setInsp(null)
|
||||||
->setTvop(null)
|
->setTvop(null)
|
||||||
|
|
Loading…
Reference in a new issue