2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-08 12:50:55 +00:00

Form for creating a new price break for a supplier part

This commit is contained in:
Oliver Walters
2019-05-18 16:42:57 +10:00
parent 1163f60b23
commit fc3072a459
6 changed files with 112 additions and 10 deletions

View File

@@ -12,6 +12,7 @@ from django import forms
from .models import Part, PartCategory, PartAttachment
from .models import BomItem
from .models import SupplierPart
from .models import SupplierPriceBreak
class PartImageForm(HelperForm):
@@ -161,3 +162,15 @@ class EditSupplierPartForm(HelperForm):
'packaging',
'lead_time'
]
class EditPriceBreakForm(HelperForm):
""" Form for creating / editing a supplier price break """
class Meta:
model = SupplierPriceBreak
fields = [
'part',
'quantity',
'cost'
]