You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is some copy/paste on those set_route_... and other action methods (L334-L366).
Use a helper method instead:
classeSSP(object):
def_action_helper(self, amount, currency, prefix, action):
self.actions+=actionself.actions_args['{}_amount'.format(prefix)] =amount*100self.actions_args['{}_currency'.format(prefix)] =currency.upper().encode()
defset_route_cashbox(self, amount, currency="CHF"):
"""Set the bills <amount> in the cashbox NV11: Set the bills <= amount in the cashbox"""self._action_helper(amount, currency, 'routec', 'c')
The text was updated successfully, but these errors were encountered:
There is some copy/paste on those
set_route_...
and other action methods (L334-L366).Use a helper method instead:
The text was updated successfully, but these errors were encountered: