Refs #250 -- Keep payment deadlines on weekdays

This commit is contained in:
Raphael Michel
2016-09-25 12:18:17 +02:00
parent 79e1b6cb83
commit 48791b2f02
5 changed files with 45 additions and 8 deletions

View File

@@ -204,6 +204,13 @@ class PaymentSettingsForm(SettingsForm):
required=False,
widget=forms.DateTimeInput(attrs={'class': 'datetimepicker'})
)
payment_term_weekdays = forms.BooleanField(
label=_('Only end payment terms on weekdays'),
help_text=_("If this is activated and the payment term of any order ends on a saturday or sunday, it will be "
"moved to the next monday instead. This is required in some countries by civil law. This will "
"not effect the last date of payments configured above."),
required=False,
)
payment_term_expire_automatically = forms.BooleanField(
label=_('Automatically expire unpaid orders'),
help_text=_("If checked, all unpaid orders will automatically go from 'pending' to 'expired' "