Salary slip bug fix
diff --git a/erpnext/hr/doctype/salary_slip/salary_slip.js b/erpnext/hr/doctype/salary_slip/salary_slip.js
index affbb55..4fa3f96 100644
--- a/erpnext/hr/doctype/salary_slip/salary_slip.js
+++ b/erpnext/hr/doctype/salary_slip/salary_slip.js
@@ -178,7 +178,7 @@
tbl[i].amount = Math.round(tbl[i].default_amount)*(flt(doc.payment_days) /
cint(doc.total_working_days)*100)/100;
} else if(reset_amount) {
- tbl[i].amount = tbl[i].default_amount;
+ tbl[i].amount = tbl[i].amount;
}
if(!tbl[i].do_not_include_in_total) {
total_earn += flt(tbl[i].amount);
@@ -199,7 +199,7 @@
if(cint(tbl[i].depends_on_lwp) == 1) {
tbl[i].amount = Math.round(tbl[i].default_amount)*(flt(doc.payment_days)/cint(doc.total_working_days)*100)/100;
} else if(reset_amount) {
- tbl[i].amount = tbl[i].default_amount;
+ tbl[i].amount = tbl[i].amount;
}
if(!tbl[i].do_not_include_in_total) {
total_ded += flt(tbl[i].amount);