Test currency instead of party when reconcile automatically

Closes #12258
This commit is contained in:
Cédric Krier committed 2023-05-05 12:24:08 +02:00
1 parent 4929c6f294
commit 6b70ecf0f3
1 file changed
+3 -2
+3 -2
View File
@@ -2167,8 +2167,9 @@ class Reconcile(Wizard):
while lines:
Line.reconcile(lines)
lines = self._default_lines()
if not self.get_parties(
self.show.account, party=self.show.party):
if not self.get_currencies(
self.show.account, self.show.party,
currency=self.show.currency):
return 'next_'
elif not lines and self.start.only_balanced:
return 'next_'