Transaction can't be attached to a closed remittance
This commit is contained in:
parent
432f14d9d1
commit
075cb1b592
1 changed files with 2 additions and 0 deletions
|
|
@ -121,6 +121,8 @@ class LinkTransactionToRemittanceForm(forms.ModelForm):
|
|||
# Add submit button
|
||||
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):
|
||||
"""
|
||||
Replace the first name in the information of the transaction.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue