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

Refactor function naming

This commit is contained in:
Oliver Walters
2020-05-16 12:03:18 +10:00
parent 4cb97b1340
commit 3d0bea15ae
6 changed files with 20 additions and 20 deletions

View File

@@ -113,7 +113,7 @@ class SerializeStockForm(HelperForm):
if item:
# Pre-calculate what the serial numbers should be!
sn = item.part.get_next_serial_number()
sn = item.part.getNextSerialNumber()
if item.quantity >= 2:
sn = "{n}-{m}".format(n=sn, m=int(sn+item.quantity-1))