added the due date for PaymentRequestConversion API
This commit is contained in:
parent
985dc616c7
commit
58a4a23ac7
@ -237,7 +237,7 @@ namespace Marco.Pms.Services.Controllers
|
||||
var response = await _expensesService.CreateRecurringPaymentAsync(model, loggedInEmployee, tenantId);
|
||||
if (response.Success)
|
||||
{
|
||||
var notification = new { LoggedInUserId = loggedInEmployee.Id, Keyword = "Payment_Request", Response = response.Data };
|
||||
var notification = new { LoggedInUserId = loggedInEmployee.Id, Keyword = "Recurring_Payment", Response = response.Data };
|
||||
await _signalR.SendNotificationAsync(notification);
|
||||
}
|
||||
return StatusCode(response.StatusCode, response);
|
||||
@ -249,7 +249,11 @@ namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync();
|
||||
var response = await _expensesService.PaymentRequestConversionAsync(model.RecurringTemplateIds, loggedInEmployee, tenantId);
|
||||
|
||||
if (response.Success)
|
||||
{
|
||||
var notification = new { LoggedInUserId = loggedInEmployee.Id, Keyword = "Payment_Request", Response = response.Data };
|
||||
await _signalR.SendNotificationAsync(notification);
|
||||
}
|
||||
return StatusCode(response.StatusCode, response);
|
||||
}
|
||||
|
||||
|
||||
@ -3153,6 +3153,7 @@ namespace Marco.Pms.Services.Service
|
||||
var response = newRecurringPayments.Select(rp => new
|
||||
{
|
||||
RecurringPayment = _mapper.Map<RecurringPaymentVM>(rp),
|
||||
DueDate = DateTime.UtcNow.AddDays(rp.PaymentBufferDays),
|
||||
Emails = rp.NotifyTo.Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries)
|
||||
}).ToList();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user