...
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user