From 323b0e678de3224de143129155d47293785ebc77 Mon Sep 17 00:00:00 2001 From: Steve Blamey Date: Tue, 6 Jul 2021 14:57:42 +0100 Subject: [PATCH] PVA posting fixes closes #237 --- .../erp/ledger/general_ledger/models/GLTransaction.php | 4 ++-- modules/public_pages/erp/ledger/vat/resources/js/vat.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/public_pages/erp/ledger/general_ledger/models/GLTransaction.php b/modules/public_pages/erp/ledger/general_ledger/models/GLTransaction.php index f47a1da0..8fd72df8 100755 --- a/modules/public_pages/erp/ledger/general_ledger/models/GLTransaction.php +++ b/modules/public_pages/erp/ledger/general_ledger/models/GLTransaction.php @@ -995,12 +995,12 @@ public static function makePVAEntry($gl_data, &$errors = array()) // Write VAT Value $gl_data['value'] = $vat; GLTransaction::setTwinCurrency($gl_data); - $gl_transactions[] = GLTransaction::Factory($gl_data, $errors); + $gl_transactions[] = GLTransaction::Factory($gl_data, $errors, true); // Write VAT control entry $gl_data['value'] = bcmul($vat, - 1); GLTransaction::setTwinCurrency($gl_data); - $gl_transactions[] = GLTransaction::Factory($gl_data, $errors); + $gl_transactions[] = GLTransaction::Factory($gl_data, $errors, true); return $gl_transactions; } diff --git a/modules/public_pages/erp/ledger/vat/resources/js/vat.js b/modules/public_pages/erp/ledger/vat/resources/js/vat.js index 67a0a1e7..4d23d2ce 100755 --- a/modules/public_pages/erp/ledger/vat/resources/js/vat.js +++ b/modules/public_pages/erp/ledger/vat/resources/js/vat.js @@ -207,7 +207,7 @@ $(document).ready(function(){ var $self = $(this); - $('#Vat_post_date').uz_ajax({ + $('#Vat_transaction_date').uz_ajax({ data:{ module : 'vat', controller : 'vat',