1
0
forked from erp-dev/erp

feat: added type field into warehouse model

This commit is contained in:
2025-11-20 15:44:35 +08:00
parent 6091280fdc
commit 2a838199fa
22 changed files with 1384 additions and 38 deletions

View File

@@ -39,7 +39,6 @@ class PrintingJobAPITestCase(TestCase):
merchant=self.merchant,
name='测试员工',
mobile='13800138000',
job_type=basic_models.EmployeeTypeEnum.PRINTER,
status=basic_models.EmployeeStatusEnum.ACTIVE
)
@@ -979,9 +978,9 @@ class PrintingJobAPITestCase(TestCase):
self.assertIsNotNone(timeline[0]['completed_at'])
self.assertIsNotNone(timeline[0]['completed_by'])
# 第二个状态应该是进行中
# 第二个状态应该是未开始(因为我们废除了 in_progress 的概念)
self.assertEqual(timeline[1]['state_name'], self.state2.name)
self.assertEqual(timeline[1]['status'], 'in_progress')
self.assertEqual(timeline[1]['status'], 'not_started')
self.assertIsNone(timeline[1]['completed_at'])
# 第三个状态应该是未开始