completed master data endpoints

This commit is contained in:
dibakor 2026-07-14 18:50:43 +06:00
parent 376af6828e
commit 1aed28659e
3 changed files with 3 additions and 3 deletions

View File

@ -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; }
}

View File

@ -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)
];

View File

@ -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));
}