This commit is contained in:
mmrbnjd
2024-08-07 16:31:55 +03:30
parent 5a46b0d417
commit 0a5065f5b3
2 changed files with 28 additions and 17 deletions

View File

@@ -266,12 +266,18 @@ namespace Back.Controllers
Sstid = bitem.sstid, Sstid = bitem.sstid,
//شرح کاال/خدمت //شرح کاال/خدمت
Sstt = bitem.sstt, Sstt = bitem.sstt,
//واحد اندازه گیری
Mu = string.IsNullOrEmpty(bitem.mu) ? null : bitem.mu,
// تعداد // تعداد
Am = bitem.am, Am = bitem.am,
//واحد اندازه گیری
Mu = string.IsNullOrEmpty(bitem.mu) ? null : bitem.mu,
// مبلغ واحد // مبلغ واحد
Fee = bitem.fee, Fee = bitem.fee,
//میزان ارز
Cfee = bitem.cfee,
//نوع ارز
Cut = string.IsNullOrEmpty(bitem.cut) ? null : bitem.cut,
//نرخ برابری ارز با ریال
Exr = bitem.exr,
//مبلغ قبل از تخفیف //مبلغ قبل از تخفیف
Prdis = bitem.prdis, Prdis = bitem.prdis,
//مبلغ تخفیف //مبلغ تخفیف
@@ -282,22 +288,26 @@ namespace Back.Controllers
Vra = bitem.vra, Vra = bitem.vra,
//مبلغ مالیات بر ارزش افزوده //مبلغ مالیات بر ارزش افزوده
Vam = bitem.vam, Vam = bitem.vam,
//موضوع سایر مالیات و عوارض
Odt = string.IsNullOrEmpty(bitem.odt) ? null : bitem.odt,
//نرخ سایر مالیات و عوارض
Odr = bitem.odr,
//مبلغ سایر مالیات و عوارض
Odam = bitem.odam,
//موضوع سایر وجوه قانونی
Olt = string.IsNullOrEmpty(bitem.olt) ? null : bitem.olt,
//نرخ سایر وجوه قانونی
Olr = bitem.olr,
//مبلغ سایر وجوه قانونی
Olam = bitem.olam,
//سهم نقدی از پرداخت
Cop = bitem.cop,
//سهم مالیات بر لرزش افزوده از پرداخت
Vop = bitem.vop,
//شناسه یکتای ثبت قرارداد حق العمل کاری
Bsrn = string.IsNullOrEmpty(bitem.bsrn) ? null : bitem.bsrn,
// مبلغ کل کالا / خدمت // مبلغ کل کالا / خدمت
Tsstam = bitem.tsstam, Tsstam = bitem.tsstam,
Cfee = bitem.cfee,
Cut = string.IsNullOrEmpty(bitem.cut) ? null : bitem.cut,
Exr = bitem.exr,
Odt = string.IsNullOrEmpty(bitem.odt) ? null : bitem.odt,
Odr = bitem.odr,
Odam = bitem.odam,
Olt = string.IsNullOrEmpty(bitem.olt) ? null : bitem.olt,
Olr = bitem.olr,
Olam = bitem.olam,
Cop = bitem.cop,
Vop = bitem.vop,
Bsrn = string.IsNullOrEmpty(bitem.bsrn) ? null : bitem.bsrn,
}; };
#endregion #endregion
InvoiceBody.Add(item); InvoiceBody.Add(item);

View File

@@ -569,7 +569,8 @@
if (rsp.IsSuccessStatusCode) if (rsp.IsSuccessStatusCode)
{ {
invoice = await rsp.Content.ReadFromJsonAsync<InvoiceDTO>(); invoice = await rsp.Content.ReadFromJsonAsync<InvoiceDTO>();
if (!Cus.Any(w => w.ID == invoice.CustomerID))
invoice.CustomerID = 0;
} }
else if (rsp.StatusCode == System.Net.HttpStatusCode.BadRequest) else if (rsp.StatusCode == System.Net.HttpStatusCode.BadRequest)