mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Pep goes the weasel
This commit is contained in:
parent
7ce5a9a7e5
commit
433dc7b3e3
@ -53,8 +53,8 @@ class ProjectPart(models.Model):
|
||||
overage_type = models.IntegerField(
|
||||
default=1,
|
||||
choices=[
|
||||
(OVERAGE_PERCENT, "Percent"),
|
||||
(OVERAGE_ABSOLUTE, "Absolute")
|
||||
(OVERAGE_PERCENT, "Percent"),
|
||||
(OVERAGE_ABSOLUTE, "Absolute")
|
||||
])
|
||||
|
||||
def __str__(self):
|
||||
|
@ -10,5 +10,4 @@ def index(request):
|
||||
|
||||
return render(request, 'stock/index.html',
|
||||
{'warehouses': warehouses
|
||||
}
|
||||
)
|
||||
})
|
||||
|
@ -54,7 +54,6 @@ class SupplierPriceBreak(models.Model):
|
||||
currency = models.CharField(max_length=10,
|
||||
blank=True)
|
||||
|
||||
|
||||
def __str__(self):
|
||||
return "{mpn} - {cost}{currency} @ {quan}".format(
|
||||
mpn=part.MPN,
|
||||
|
@ -38,12 +38,12 @@ class UniquePart(models.Model):
|
||||
|
||||
status = models.IntegerField(default=PART_IN_PROGRESS,
|
||||
choices=[
|
||||
(PART_IN_PROGRESS, "In progress"),
|
||||
(PART_IN_STOCK, "In stock"),
|
||||
(PART_SHIPPED, "Shipped"),
|
||||
(PART_RETURNED, "Returned"),
|
||||
(PART_DAMAGED, "Damaged"),
|
||||
(PART_DESTROYED, "Destroyed"),
|
||||
(PART_IN_PROGRESS, "In progress"),
|
||||
(PART_IN_STOCK, "In stock"),
|
||||
(PART_SHIPPED, "Shipped"),
|
||||
(PART_RETURNED, "Returned"),
|
||||
(PART_DAMAGED, "Damaged"),
|
||||
(PART_DESTROYED, "Destroyed"),
|
||||
])
|
||||
|
||||
def __str__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user