From 33e27f73b527b2c68966d5cb0c736312b4f4d180 Mon Sep 17 00:00:00 2001 From: pjpatil12 Date: Sun, 8 Feb 2026 12:42:12 +0530 Subject: [PATCH] new field added on Tax calculation and mat conditions appply --- static/js/ao_calc.js | 8 ++++---- templates/add_ao.html | 3 ++- templates/add_cit.html | 3 ++- templates/add_itat.html | 3 ++- templates/add_itr.html | 3 ++- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/static/js/ao_calc.js b/static/js/ao_calc.js index 0241981..f677b99 100644 --- a/static/js/ao_calc.js +++ b/static/js/ao_calc.js @@ -71,18 +71,18 @@ document.addEventListener("DOMContentLoaded", function () { var result = 0 if (a > b) { result = a - b - setValue("mat_credit_created", result); + setValue("mat_credit_utilized", result); } else { - setValue("mat_credit_created", result); + setValue("mat_credit_utilized", result); } if (b > a) { result = b - a - setValue("mat_credit_utilized", result); + setValue("mat_credit_created", result); } else { - setValue("mat_credit_utilized", result); + setValue("mat_credit_created", result); } // --- FINAL TAX --- diff --git a/templates/add_ao.html b/templates/add_ao.html index c5bef34..7e19adc 100644 --- a/templates/add_ao.html +++ b/templates/add_ao.html @@ -80,7 +80,8 @@
- +
diff --git a/templates/add_cit.html b/templates/add_cit.html index 6b4ea4f..b10c67f 100644 --- a/templates/add_cit.html +++ b/templates/add_cit.html @@ -80,7 +80,8 @@
- +
diff --git a/templates/add_itat.html b/templates/add_itat.html index ab23faa..ea96a26 100644 --- a/templates/add_itat.html +++ b/templates/add_itat.html @@ -83,7 +83,8 @@
- +
diff --git a/templates/add_itr.html b/templates/add_itr.html index d45dc75..e1223d4 100644 --- a/templates/add_itr.html +++ b/templates/add_itr.html @@ -80,7 +80,8 @@
- +