Skip to content

Commit

Permalink
PVA posting fixes
Browse files Browse the repository at this point in the history
closes #237
  • Loading branch information
steveblamey committed Jul 6, 2021
1 parent 6ec0a61 commit 323b0e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/public_pages/erp/ledger/vat/resources/js/vat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 323b0e6

Please sign in to comment.