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

@@ -136,6 +136,8 @@ class PreSalesAllocationAPITestCase(TestCase):
)
self.assertEqual(delete_resp.status_code, status.HTTP_200_OK)
self.assertEqual(delete_resp.data['status'], business_models.AllocationRecordStatusEnum.CANCELLED)
freeze = stock_models.StockFreeze.objects.get(stock_detail=self.stock_detail)
self.assertEqual(freeze.status, stock_models.StockFreezeStatusEnum.CANCELLED)
def test_create_allocation_with_invalid_stock(self):
order = self._create_order()