forked from erp-dev/erp
feat: error_code + api doc + printing-job fields
This commit is contained in:
@@ -171,6 +171,8 @@ class PrintingJobByCustomerAPITest(TestCase):
|
||||
customer=self.customer,
|
||||
fabric='棉',
|
||||
width='150cm',
|
||||
curve='曲线A',
|
||||
new_curve='新曲线A',
|
||||
external_order_id='KD20410611',
|
||||
)
|
||||
self.printing_order_other = printing_models.PrintingOrder.objects.create(
|
||||
@@ -256,6 +258,8 @@ class PrintingJobByCustomerAPITest(TestCase):
|
||||
self.assertEqual(resp.data[0]['external_order_id'], 'KD20410611')
|
||||
self.assertEqual(resp.data[0]['sub_id'], 11)
|
||||
self.assertEqual(resp.data[0]['billed_quantity'], '20.00')
|
||||
self.assertEqual(resp.data[0]['curve'], '曲线A')
|
||||
self.assertEqual(resp.data[0]['new_curve'], '新曲线A')
|
||||
|
||||
def test_filter_by_printing_order(self):
|
||||
resp = self._get({
|
||||
|
||||
Reference in New Issue
Block a user