From 54079d12871b48741d2c350bf3fcb31bc30580db Mon Sep 17 00:00:00 2001 From: flora Date: Mon, 30 Jul 2018 10:55:53 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=E4=B8=9A=E5=8A=A1=E4=BC=99=E4=BC=B4?= =?UTF-8?q?=E5=AF=B9=E8=B4=A6=E5=8D=95=E5=BA=94=E6=94=B6/=E5=BA=94?= =?UTF-8?q?=E4=BB=98=E4=BD=99=E9=A2=9D=E6=B6=89=E5=8F=8A=E5=88=B0=E6=8A=98?= =?UTF-8?q?=E6=89=A3=E6=97=B6=E8=AE=A1=E7=AE=97=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- money/report/customer_statements.py | 2 +- money/report/supplier_statements.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/money/report/customer_statements.py b/money/report/customer_statements.py index dd7381f9c..2bde8b6a2 100644 --- a/money/report/customer_statements.py +++ b/money/report/customer_statements.py @@ -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) diff --git a/money/report/supplier_statements.py b/money/report/supplier_statements.py index d12e18709..838379586 100644 --- a/money/report/supplier_statements.py +++ b/money/report/supplier_statements.py @@ -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)