#69 refactor(ReconciliationJar): remove old form.
This commit is contained in:
parent
0d61e457c7
commit
4679170ab9
@ -3,7 +3,7 @@ from django.forms.models import inlineformset_factory
|
||||
|
||||
from django.forms.widgets import DateInput, DateTimeInput
|
||||
|
||||
from .models import Sale, SaleLine, ReconciliationJar, PaymentMethods
|
||||
from .models import Sale, SaleLine, PaymentMethods
|
||||
|
||||
readonly_number_widget = forms.NumberInput(attrs={'readonly': 'readonly'})
|
||||
|
||||
@ -64,18 +64,3 @@ SaleLineFormSet = inlineformset_factory(
|
||||
extra=1,
|
||||
fields='__all__'
|
||||
)
|
||||
|
||||
|
||||
class ReconciliationJarForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = ReconciliationJar
|
||||
fields = [
|
||||
'date_time',
|
||||
'description',
|
||||
'reconcilier',
|
||||
'cash_taken',
|
||||
'cash_discrepancy',
|
||||
]
|
||||
widgets = {
|
||||
'date_time': DateTimeInput(attrs={'type': 'datetime-local'})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user