make some properties nullable in customers
This commit is contained in:
parent
93be7ab99c
commit
4f3a990c60
|
|
@ -78,21 +78,17 @@ public class IntegrationCustomerRequest
|
|||
[StringLength(20, ErrorMessage = "Sales group description cannot exceed 20 characters.")]
|
||||
public string SalesGroupDescription { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Customer group is required.")]
|
||||
[StringLength(2, ErrorMessage = "Customer group cannot exceed 2 characters.")]
|
||||
public string CustomerGroup { get; set; }
|
||||
public string? CustomerGroup { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Customer group description is required.")]
|
||||
[StringLength(20, ErrorMessage = "Customer group description cannot exceed 20 characters.")]
|
||||
public string CustomerGroupDescription { get; set; }
|
||||
public string? CustomerGroupDescription { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Customer price group is required.")]
|
||||
[StringLength(2, ErrorMessage = "Customer price group cannot exceed 2 characters.")]
|
||||
public string CustomerPriceGroup { get; set; }
|
||||
public string? CustomerPriceGroup { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Customer price group description is required.")]
|
||||
[StringLength(20, ErrorMessage = "Customer price group description cannot exceed 20 characters.")]
|
||||
public string CustomerPriceGroupDescription { get; set; }
|
||||
public string? CustomerPriceGroupDescription { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Status code is required.")]
|
||||
[StringLength(1, ErrorMessage = "Status code cannot exceed 1 character.")]
|
||||
|
|
@ -102,12 +98,10 @@ public class IntegrationCustomerRequest
|
|||
[StringLength(30, ErrorMessage = "Status description cannot exceed 30 characters.")]
|
||||
public string StatusDescription { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Payment terms is required.")]
|
||||
[StringLength(4, ErrorMessage = "Payment terms cannot exceed 4 characters.")]
|
||||
public string PaymentTerms { get; set; }
|
||||
public string? PaymentTerms { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Payment terms description is required.")]
|
||||
public string PaymentTermsDescription { get; set; }
|
||||
public string? PaymentTermsDescription { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Search term is required.")]
|
||||
[StringLength(20, ErrorMessage = "Search term cannot exceed 20 characters.")]
|
||||
|
|
@ -147,7 +141,6 @@ public class IntegrationCustomerRequest
|
|||
}
|
||||
|
||||
|
||||
|
||||
public class CustomerByCompanyCodeRequest
|
||||
{
|
||||
[Required(ErrorMessage = "Customer Number is required")]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user