make plant optional of Material Endpoint in Integration

This commit is contained in:
dibakor 2026-07-27 11:47:13 +06:00
parent c75c96d0fd
commit edf51b4271

View File

@ -48,13 +48,11 @@ public class IntegrationMaterialRequest
[Range(0.001, 999.999, ErrorMessage = "Unit conversion must be between 0.001 and 999.999.")]
public decimal UnitConversionWithBaseUoM { get; set; }
[Required(ErrorMessage = "Plant code is required.")]
[StringLength(4, ErrorMessage = "Plant code cannot exceed 4 characters.")]
public string PlantCode { get; set; }
[StringLength(10, ErrorMessage = "Plant code cannot exceed 10 characters.")]
public string? PlantCode { get; set; }
[Required(ErrorMessage = "Plant description is required.")]
[StringLength(30, ErrorMessage = "Plant description cannot exceed 30 characters.")]
public string PlantDescription { get; set; }
public string? PlantDescription { get; set; }
public string? StorageLocationCode { get; set; }
public string? StorageLocationDescription { get; set; }