tum 11 miesięcy temu
rodzic
commit
0205d27f6c
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      app/core/models.py
  2. 1 1
      app/legacy/views.py

+ 1 - 1
app/core/models.py

@@ -398,7 +398,7 @@ class AllProductAverageObMinMaxView(models.Model):
398 398
 
399 399
 class AllProductDimensionForInsProcess(models.Model):
400 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 402
     Size_Id = models.CharField(max_length=255, null=True)  # Size ID (e.g., '001', '002')
403 403
     Size_Name = models.CharField(max_length=255, null=True)  # Size name (e.g., 'D', 'T', 'H')
404 404
     Std = models.DecimalField(max_digits=10, decimal_places=2, null=True)  # Standard value

+ 1 - 1
app/legacy/views.py

@@ -437,7 +437,7 @@ class AllProductDimensionForInsProcessCRUDView(ConfigurableCRUDView):
437 437
     delete_url_name = 'legacy:allproductdimension-delete'
438 438
 
439 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 442
     # Exclude fields if necessary
443 443