...
This commit is contained in:
@@ -364,6 +364,7 @@ namespace Back.Controllers
|
||||
if (level != 10)
|
||||
foreach (var pitem in result.payments)
|
||||
{
|
||||
|
||||
PaymentDto payment = new PaymentDto();
|
||||
payment = new PaymentDto
|
||||
{
|
||||
|
@@ -255,17 +255,17 @@ namespace Back.Services
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach (var pitem in FildItems.Payments)
|
||||
{
|
||||
var invoicepayments = InvoiceItem.payments.Where(w => w.ID == pitem.ID).FirstOrDefault();
|
||||
foreach (var item in pitem.filds.Where(w => w.InputBox == "fild" || w.InputBox == "fromdb"))
|
||||
{
|
||||
if (invoicepayments != null)
|
||||
SetValue(item, ref invoicepayments);
|
||||
}
|
||||
if (!await _invoicePaymentRepo.UpdateAsync(invoicepayments))
|
||||
return false;
|
||||
}
|
||||
//foreach (var pitem in FildItems.Payments)
|
||||
//{
|
||||
// var invoicepayments = InvoiceItem.payments.Where(w => w.ID == pitem.ID).FirstOrDefault();
|
||||
// foreach (var item in pitem.filds.Where(w => w.InputBox == "fild" || w.InputBox == "fromdb"))
|
||||
// {
|
||||
// if (invoicepayments != null)
|
||||
// SetValue(item, ref invoicepayments);
|
||||
// }
|
||||
// if (!await _invoicePaymentRepo.UpdateAsync(invoicepayments))
|
||||
// return false;
|
||||
//}
|
||||
}
|
||||
else return false;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user