Use the last journal encoded of the day to fill start balance

issue5939
review27681002
This commit is contained in:
Cédric Krier committed 2016-10-11 18:15:44 +02:00
1 parent 3233f49913
commit c7ed8f340d
1 file changed
+1
+1
View File
@@ -214,6 +214,7 @@ class Statement(Workflow, ModelSQL, ModelView):
('journal', '=', self.journal.id),
], order=[
('date', 'DESC'),
('id', 'DESC'),
], limit=1)
if not statements:
return