Reconcile action fixed..
This commit is contained in:
@ -29,7 +29,7 @@ const app = new Vue({
|
||||
return {
|
||||
form: new Form('reconciliation'),
|
||||
bulk_action: new BulkAction('reconciliations'),
|
||||
reconcile: true,
|
||||
reconcile: false,
|
||||
difference: null,
|
||||
totals: {
|
||||
closing_balance: 0,
|
||||
@ -54,7 +54,7 @@ const app = new Vue({
|
||||
setDueMinDate(date) {
|
||||
this.min_due_date = date;
|
||||
},
|
||||
|
||||
|
||||
onReconcilition() {
|
||||
let form = document.getElementById('form-create-reconciliation');
|
||||
|
||||
@ -64,7 +64,7 @@ const app = new Vue({
|
||||
},
|
||||
|
||||
onCalculate() {
|
||||
this.reconcile = true;
|
||||
this.reconcile = false;
|
||||
this.difference = null;
|
||||
|
||||
let transactions = this.form.transactions;
|
||||
@ -106,10 +106,10 @@ const app = new Vue({
|
||||
|
||||
if (difference != 0) {
|
||||
this.difference = 'bg-orange-300';
|
||||
this.reconcile = true;
|
||||
this.reconcile = false;
|
||||
} else {
|
||||
this.difference = 'bg-green-100';
|
||||
this.reconcile = false;
|
||||
this.reconcile = true;
|
||||
}
|
||||
|
||||
this.totals.cleared_amount = parseFloat(cleared_amount);
|
||||
|
Reference in New Issue
Block a user