This commit is contained in:
mmrbnjd
2024-08-28 00:29:35 +03:30
parent 21eeb4d11b
commit c118dc0d6b
9 changed files with 338 additions and 27 deletions

View File

@@ -236,7 +236,7 @@ namespace Back.Controllers
//شماره کدتاژ اظهارنامه گمرکی
Cdcn = level == 10 ? result.cdcn : null,
//تاریخ کوتاژ اظهارنامه گمرکی
// Cdcd = level == 10 ? result.cdcd : null,
Cdcd = level == 10 ? result.cdcd : null,
//شناسه یکتای ثبت قزارداد فروشنده
Crn = (level == 3 || level == 4 || level == 5 || level == 6) && !string.IsNullOrEmpty(result.crn) ? result.crn : null,
//شماره اشتراک/شناسه قبض بهره بردار
@@ -358,26 +358,30 @@ namespace Back.Controllers
//Pay
List<PaymentDto> InvoicePay = new List<PaymentDto>();
if(level!=10)
foreach (var pitem in result.payments)
if (result.setm==1 || result.setm == 3)
{
PaymentDto payment = new PaymentDto();
payment = new PaymentDto
if (level != 10)
foreach (var pitem in result.payments)
{
Iinn=pitem.iinn,
Acn=pitem.acn,
Trmn=pitem.trmn,
Pmt=pitem.pmt,
Trn=pitem.trn,
Pcn=pitem.pcn,
Pid=pitem.pid,
Pdt=pitem.pdt,
Pv=pitem.pv,
};
PaymentDto payment = new PaymentDto();
payment = new PaymentDto
{
Iinn = pitem.iinn,
Acn = pitem.acn,
Trmn = pitem.trmn,
Pmt = pitem.pmt,
Trn = pitem.trn,
Pcn = pitem.pcn,
Pid = pitem.pid,
Pdt = pitem.pdt,
Pv = pitem.pv,
InvoicePay.Add(payment);
};
InvoicePay.Add(payment);
}
}