mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-29 20:51:11 +02:00
Transaction can't be attached to a closed remittance
This commit is contained in:
@ -121,6 +121,8 @@ class LinkTransactionToRemittanceForm(forms.ModelForm):
|
|||||||
# Add submit button
|
# Add submit button
|
||||||
self.helper.add_input(Submit('submit', _("Submit"), attr={'class': 'btn btn-block btn-primary'}))
|
self.helper.add_input(Submit('submit', _("Submit"), attr={'class': 'btn btn-block btn-primary'}))
|
||||||
|
|
||||||
|
self.fields["remittance"].queryset = Remittance.objects.filter(closed=False)
|
||||||
|
|
||||||
def clean_last_name(self):
|
def clean_last_name(self):
|
||||||
"""
|
"""
|
||||||
Replace the first name in the information of the transaction.
|
Replace the first name in the information of the transaction.
|
||||||
|
Reference in New Issue
Block a user