Commit 822a15b7 by 夏超

[fix] 玖姿问题

parent 3255e05b
......@@ -31,6 +31,6 @@ class ProductIncomeExpense(models.Model):
("id", "!=", v.id)
], limit=1, order="business_date desc, create_date desc")
if not last_data:
v.balance = round(0 + v.income - v.expenditure, 2)
v.balance = 0 + v.income - v.expenditure
else:
v.balance = round(last_data.balance + v.income - v.expenditure, 2)
v.balance = last_data.balance + v.income - v.expenditure
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment