2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 13:35:40 +00:00

Function to predict the next purchase order number

This commit is contained in:
Oliver Walters
2020-05-14 15:00:00 +10:00
parent 41eff97c7c
commit cebfe9a30f
3 changed files with 47 additions and 3 deletions

View File

@ -37,6 +37,12 @@ class OrderTest(TestCase):
self.assertEqual(str(line), "100 x ACME0001 from ACME (for PO 1 - ACME)")
def test_increment(self):
next_ref = PurchaseOrder.getNextOrderNumber()
self.assertEqual(next_ref, '0003')
def test_on_order(self):
""" There should be 3 separate items on order for the M2x4 LPHS part """