1
0
forked from erp-dev/erp

feat: support pre_sales_order convert to sales_order api

This commit is contained in:
2026-02-02 15:58:29 +08:00
parent 2572c5aab4
commit fb93582b06
13 changed files with 379 additions and 7 deletions

View File

@@ -181,5 +181,11 @@ class AllocationServicesTestCase(TestCase):
unit='',
scanned_by=self.employee,
)
updated = allocation_services.cancel_allocation_record(record=record)
updated = allocation_services.cancel_allocation_record_with_unfreeze(
record=record,
cancelled_by=self.user,
reason='测试撤销',
)
self.assertEqual(updated.status, business_models.AllocationRecordStatusEnum.CANCELLED)
freeze = stock_models.StockFreeze.objects.get(stock_detail=self.stock_detail)
self.assertEqual(freeze.status, stock_models.StockFreezeStatusEnum.CANCELLED)