#69 refactor(ReconciliationJar): remove old form.
This commit is contained in:
		@@ -3,7 +3,7 @@ from django.forms.models import inlineformset_factory
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
from django.forms.widgets import DateInput, DateTimeInput
 | 
					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'})
 | 
					readonly_number_widget = forms.NumberInput(attrs={'readonly': 'readonly'})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -64,18 +64,3 @@ SaleLineFormSet = inlineformset_factory(
 | 
				
			|||||||
    extra=1,
 | 
					    extra=1,
 | 
				
			||||||
    fields='__all__'
 | 
					    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'})
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user