Adicionar resumen de compra en el formulario de compra #14

Merged
mono merged 8 commits from pagar_una_compra_en_efectivo_#13 into main 2024-08-03 09:45:27 -05:00
Showing only changes of commit 83bab78182 - Show all commits

View File

@ -35,9 +35,9 @@ class PurchaseLineForm(forms.ModelForm):
] ]
class PurchaseSummaryForm(forms.Form): class PurchaseSummaryForm(forms.Form):
quantity_lines = forms.IntegerField() quantity_lines = forms.IntegerField(widget=forms.NumberInput(attrs={'readonly': 'readonly'}))
quantity_products = forms.IntegerField() quantity_products = forms.IntegerField(widget=forms.NumberInput(attrs={'readonly': 'readonly'}))
ammount = forms.DecimalField(max_digits=10, decimal_places=2) ammount = forms.DecimalField(max_digits=10, decimal_places=2, widget=forms.NumberInput(attrs={'readonly': 'readonly'}))
LineaFormSet = inlineformset_factory( LineaFormSet = inlineformset_factory(
Sale, Sale,