From 8b77dc10db11fe354dfb76c929e738649644715e Mon Sep 17 00:00:00 2001 From: Sevan Nerse Date: Thu, 28 Jan 2021 15:10:04 +0300 Subject: [PATCH] onCalculateTotal should be called with timeout --- resources/assets/js/views/common/documents.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/views/common/documents.js b/resources/assets/js/views/common/documents.js index 890151636..6fd874846 100644 --- a/resources/assets/js/views/common/documents.js +++ b/resources/assets/js/views/common/documents.js @@ -309,7 +309,9 @@ const app = new Vue({ // invoice_item_checkbox_sample: [], }); - this.onCalculateTotal(); + setTimeout(function() { + this.onCalculateTotal(); + }.bind(this), 800); }, onSelectedTax(item_index) {