Skip to content

Commit

Permalink
[FIX]业务伙伴对账单应收/应付余额涉及到折扣时计算的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
floraXiao committed Jul 30, 2018
1 parent e2a70be commit 54079d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion money/report/customer_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _compute_balance_amount(self):
pre_record = self.search(
[('id', '<=', self.id), ('partner_id', '=', self.partner_id.id)])
for pre in pre_record:
self.balance_amount += pre.amount - pre.pay_amount - self.discount_money
self.balance_amount += pre.amount - pre.pay_amount - pre.discount_money

partner_id = fields.Many2one('partner', string=u'业务伙伴', readonly=True)
name = fields.Char(string=u'单据编号', readonly=True)
Expand Down
2 changes: 1 addition & 1 deletion money/report/supplier_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _compute_balance_amount(self):
pre_record = self.search(
[('id', '<=', self.id), ('partner_id', '=', self.partner_id.id)])
for pre in pre_record:
self.balance_amount += pre.amount - pre.pay_amount + self.discount_money
self.balance_amount += pre.amount - pre.pay_amount + pre.discount_money

partner_id = fields.Many2one('partner', string=u'业务伙伴', readonly=True)
name = fields.Char(string=u'单据编号', readonly=True)
Expand Down

0 comments on commit 54079d1

Please sign in to comment.