lingo: add handling of past-due-date reason (#13735)

This commit is contained in:
Frédéric Péters 2016-10-25 14:07:33 +02:00
parent a63c3575d6
commit 87cbde30ad
1 changed files with 3 additions and 1 deletions

View File

@ -236,7 +236,9 @@ class RemoteItem(object):
@property
def no_online_payment_reason_details(self):
reasons = {'litigation': _('This invoice is in litigation.'),
'autobilling': _('Autobilling has been set for this invoice.')}
'autobilling': _('Autobilling has been set for this invoice.'),
'past-due-date': _('Due date is over.'),
}
return settings.LINGO_NO_ONLINE_PAYMENT_REASONS.get(self.no_online_payment_reason,
reasons.get(self.no_online_payment_reason))