2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-18 08:31:33 +00:00

SalesOrderShipment improvements (#3058)

* Adds two new fields to SalesOrderShipment model:

- Invoice number (char)
- Link (URL)

* Bump API version

* Update API / serializer / JS

- Allow entry of new fields at time of shipping

* PEP fixes

* Actually fix the PEP issues

* Unit testing: check some more fields
This commit is contained in:
Oliver
2022-05-25 11:00:19 +10:00
committed by GitHub
parent 063375557f
commit 2378073c61
6 changed files with 99 additions and 9 deletions

View File

@@ -1324,6 +1324,8 @@ class SalesOrderAllocateTest(OrderTest):
response = self.post(
url,
{
'invoice_number': 'INV01234',
'link': 'http://test.com/link.html',
'tracking_number': 'TRK12345',
'shipment_date': '2020-12-05',
},
@@ -1334,6 +1336,8 @@ class SalesOrderAllocateTest(OrderTest):
self.assertTrue(self.shipment.is_complete())
self.assertEqual(self.shipment.tracking_number, 'TRK12345')
self.assertEqual(self.shipment.invoice_number, 'INV01234')
self.assertEqual(self.shipment.link, 'http://test.com/link.html')
def test_sales_order_shipment_list(self):