tum 11 月之前
父節點
當前提交
0205d27f6c
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/core/models.py
  2. 1 1
      app/legacy/views.py

+ 1 - 1
app/core/models.py

398
 
398
 
399
 class AllProductDimensionForInsProcess(models.Model):
399
 class AllProductDimensionForInsProcess(models.Model):
400
     ProdType = models.CharField(max_length=255, null=True)  # Product type (e.g., 'V', 'E', 'BEL', 'MG')
400
     ProdType = models.CharField(max_length=255, null=True)  # Product type (e.g., 'V', 'E', 'BEL', 'MG')
401
-    ProductCode = models.CharField(max_length=255, null=True)  # Product code
401
+    ProductCode = models.CharField(max_length=255, primary_key=True) # Product code# Product code
402
     Size_Id = models.CharField(max_length=255, null=True)  # Size ID (e.g., '001', '002')
402
     Size_Id = models.CharField(max_length=255, null=True)  # Size ID (e.g., '001', '002')
403
     Size_Name = models.CharField(max_length=255, null=True)  # Size name (e.g., 'D', 'T', 'H')
403
     Size_Name = models.CharField(max_length=255, null=True)  # Size name (e.g., 'D', 'T', 'H')
404
     Std = models.DecimalField(max_digits=10, decimal_places=2, null=True)  # Standard value
404
     Std = models.DecimalField(max_digits=10, decimal_places=2, null=True)  # Standard value

+ 1 - 1
app/legacy/views.py

437
     delete_url_name = 'legacy:allproductdimension-delete'
437
     delete_url_name = 'legacy:allproductdimension-delete'
438
 
438
 
439
     # Define the order of fields to be displayed
439
     # Define the order of fields to be displayed
440
-    config_field_orders = ["ProdType", "ProductCode", "Size_Id", "Size_Name", "Std", "TolUn", "TolUp"]
440
+    # config_field_orders = ["ProdType", "ProductCode", "Size_Id", "Size_Name", "Std", "TolUn", "TolUp"]
441
 
441
 
442
     # Exclude fields if necessary
442
     # Exclude fields if necessary
443
 
443