completed master data endpoints
This commit is contained in:
parent
376af6828e
commit
1aed28659e
|
|
@ -175,5 +175,5 @@ public class GetPaymentTermRequest : PagedRequest
|
|||
public string SalesOrgCode { get; set; }
|
||||
|
||||
[StringLength(10, MinimumLength = 3, ErrorMessage = "PayementTerm Code must be between 3 and 10 characters.")]
|
||||
public string? PayementTermCode { get; set; }
|
||||
public string? PaymentTermCode { get; set; }
|
||||
}
|
||||
|
|
@ -889,7 +889,7 @@ public class MobileMasterDataService : IMobileMasterDataService
|
|||
SqlParameter[] p =
|
||||
[
|
||||
SqlHelperExtension.CreateInParam(pName: "@SalesOrgCode", pType: SqlDbType.VarChar, pValue: request.SalesOrgCode),
|
||||
SqlHelperExtension.CreateInParam(pName: "@PaymentTermCode", pType: SqlDbType.VarChar, pValue: request.PayementTermCode),
|
||||
SqlHelperExtension.CreateInParam(pName: "@PaymentTermCode", pType: SqlDbType.VarChar, pValue: request.PaymentTermCode),
|
||||
SqlHelperExtension.CreateInParam(pName: "@PageNumber", pType: SqlDbType.Int, pValue: request.PageNumber),
|
||||
SqlHelperExtension.CreateInParam(pName: "@PageSize", pType: SqlDbType.Int, pValue: request.PageSize)
|
||||
];
|
||||
|
|
|
|||
|
|
@ -354,7 +354,7 @@ namespace OnlineSalesAutoCrop.CoreAPI.Controllers
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string msg = $"Exception occur on Get PaymentTerms endpoint with request - {request?.SalesOrgCode} -{request?.PayementTermCode}";
|
||||
string msg = $"Exception occur on Get PaymentTerms endpoint with request - {request?.SalesOrgCode} -{request?.PaymentTermCode}";
|
||||
_logger.LogError(exception: ex, message: msg);
|
||||
return StatusCode(StatusCodes.Status500InternalServerError, MobileResponseBase<AppAuthUserResponse>.Failure(ex.InnerException != null ? ex.InnerException.Message : ex.Message, StatusCodes.Status500InternalServerError));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user