parent
beb1e5e4e4
commit
b434d48cf1
@ -243,6 +243,8 @@ class CloseStatement(Wizard):
|
|||||||
for journal in device.journals:
|
for journal in device.journals:
|
||||||
statement = draft_statements.get(journal)
|
statement = draft_statements.get(journal)
|
||||||
if statement and statement.state == 'draft':
|
if statement and statement.state == 'draft':
|
||||||
|
if not statement.start_balance:
|
||||||
|
statement.start_balance = Decimal(0)
|
||||||
end_balance = statement.start_balance
|
end_balance = statement.start_balance
|
||||||
for line in statement.lines:
|
for line in statement.lines:
|
||||||
end_balance += line.amount
|
end_balance += line.amount
|
||||||
|
Loading…
Reference in New Issue
Block a user