[fix] Round off gle due to currency conversion

This commit is contained in:
Nabin Hait
2016-01-20 16:14:27 +05:30
parent 7c8dc38f15
commit d4507ac6a0
5 changed files with 23 additions and 9 deletions

View File

@@ -141,6 +141,8 @@ def make_round_off_gle(gl_map, debit_credit_diff):
round_off_gle.update({
"account": round_off_account,
"debit_in_account_currency": abs(debit_credit_diff) if debit_credit_diff < 0 else 0,
"credit_in_account_currency": debit_credit_diff if debit_credit_diff > 0 else 0,
"debit": abs(debit_credit_diff) if debit_credit_diff < 0 else 0,
"credit": debit_credit_diff if debit_credit_diff > 0 else 0,
"cost_center": round_off_cost_center,