Skip to content

Commit 056ecdc

Browse files
committed
Merge branch 'hotfix'
2 parents b3737c8 + 3b281a0 commit 056ecdc

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

erpnext/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from erpnext.hooks import regional_overrides
66
from frappe.utils import getdate
77

8-
__version__ = '10.1.52'
8+
__version__ = '10.1.53'
99

1010
def get_default_company(user=None):
1111
'''Get default company for user'''

erpnext/accounts/report/accounts_receivable/accounts_receivable.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,16 @@ def get_outstanding_amount(self, gle, report_date, dr_or_cr, return_entries, cur
253253

254254
for e in self.get_gl_entries_for(gle.party, gle.party_type, gle.voucher_type, gle.voucher_no):
255255
if getdate(e.posting_date) <= report_date and e.name!=gle.name:
256-
amount = flt(e.get(reverse_dr_or_cr)) - flt(e.get(dr_or_cr))
256+
amount = flt(e.get(reverse_dr_or_cr), currency_precision) - flt(e.get(dr_or_cr), currency_precision)
257257
if e.voucher_no not in return_entries:
258258
payment_amount += amount
259259
else:
260260
credit_note_amount += amount
261261

262-
outstanding_amount = flt((flt(gle.get(dr_or_cr)) - flt(gle.get(reverse_dr_or_cr)) \
263-
- payment_amount - credit_note_amount), currency_precision)
262+
outstanding_amount = (flt((flt(gle.get(dr_or_cr), currency_precision)
263+
- flt(gle.get(reverse_dr_or_cr), currency_precision)
264+
- payment_amount - credit_note_amount), currency_precision))
265+
264266
credit_note_amount = flt(credit_note_amount, currency_precision)
265267

266268
return outstanding_amount, credit_note_amount

erpnext/hr/doctype/salary_slip/salary_slip.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ def check_sal_struct(self, joining_date, relieving_date):
181181
if len(st_name) > 1:
182182
frappe.msgprint(_("Multiple active Salary Structures found for employee {0} for the given dates")
183183
.format(self.employee), title=_('Warning'))
184-
return st_name and st_name[0][0] or ''
184+
self.salary_structure = st_name and st_name[0][0] or ''
185+
return self.salary_structure
185186
else:
186187
self.salary_structure = None
187188
frappe.msgprint(_("No active or default Salary Structure found for employee {0} for the given dates")

erpnext/templates/print_formats/includes/taxes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{%- if doc.discount_amount -%}
33
<div class="row">
44
<div class="col-xs-5 {%- if doc._align_labels_right %} text-right{%- endif -%}">
5-
<label>{{ _("Discount Amount") }}</label></div>
5+
<label>{{ _(doc.meta.get_label('discount_amount')) }}</label></div>
66
<div class="col-xs-7 text-right">
77
- {{ doc.get_formatted("discount_amount", doc) }}
88
</div>

0 commit comments

Comments
 (0)