minor fix

This commit is contained in:
wilsongomez 2022-02-18 16:07:21 -05:00
parent c87f9597e6
commit 0c7c464af2
1 changed files with 1 additions and 2 deletions

View File

@ -821,9 +821,8 @@ class AppWindow(FrontWindow):
return
cash_received = Decimal(text.replace(',', ''))
# FIXME
if self._commission_activated and self.enviroment == 'retail':
if self._journals[self.field_journal_id]['kind'] == 'payment':
if self.journal['kind'] == 'payment':
agent_id = None
if self.field_agent_id:
agent_id = self.field_agent_id