...
This commit is contained in:
@@ -166,9 +166,9 @@ namespace Back.Controllers
|
||||
//شماره منحصر به فرد مالیاتی
|
||||
Taxid = _actionTaxPayer.GenerateTaxid(result.inno, result.InvoiceDate.Replace("/", "").Trim()),
|
||||
//سریال صورت حساب
|
||||
Inno = result.inno ?? null,
|
||||
Inno = string.IsNullOrEmpty(result.inno) ? null : result.inno,
|
||||
//شماره اقتصادی فروشنده به جاش شناسه ملی داده شد
|
||||
Tins = result.tins ?? null,
|
||||
Tins = string.IsNullOrEmpty(result.tins) ? null : result.tins,
|
||||
//مجموع مبلغ قبل از کسر تخفیف
|
||||
Tprdis = result.tprdis ?? null,
|
||||
// مجموع مبلغ پس از کسر تخفیف
|
||||
@@ -190,19 +190,19 @@ namespace Back.Controllers
|
||||
//شماره منحصر به فرد مالیاتی صورتحساب مرجع
|
||||
Irtaxid = result.invoiceType == InvoiceType.BackFrmSale || result.invoiceType == InvoiceType.Repair ? result.invoice.taxid : null,
|
||||
//شماره اقتصادی خریدار
|
||||
Tinb = result.tinb ?? null,
|
||||
Tinb = string.IsNullOrEmpty(result.tinb) ? null : result.tinb ,
|
||||
//زمان صدور
|
||||
Indatim = result.indatim ?? null,
|
||||
//زمان ایجاد
|
||||
Indati2m = result.Indati2m ?? null,
|
||||
//کد شعبه خریدار
|
||||
Bbc = result.bbc ?? null,
|
||||
Bbc = string.IsNullOrEmpty(result.bbc) ? null : result.bbc,
|
||||
Tvop = result.tvop ?? null,
|
||||
Crn = result.crn ?? null,
|
||||
Crn = string.IsNullOrEmpty(result.crn) ? null : result.crn ,
|
||||
Tax17 = string.IsNullOrEmpty(result.seventeentax) ? null : Convert.ToDecimal(result.seventeentax),
|
||||
Scc = result.scc ?? null,
|
||||
Scln = result.scln ?? null,
|
||||
Bid = result.bid ?? null,
|
||||
Scc = string.IsNullOrEmpty(result.scc) ? null : result.scc ,
|
||||
Scln = string.IsNullOrEmpty(result.scln) ? null : result.scln ,
|
||||
Bid = string.IsNullOrEmpty(result.bid) ? null : result.bid ,
|
||||
};
|
||||
|
||||
//if (header.Inty == 1 && header.Inp == 2)
|
||||
@@ -323,7 +323,7 @@ namespace Back.Controllers
|
||||
//شرح کاال/خدمت
|
||||
Sstt = bitem.sstt,
|
||||
//واحد اندازه گیری
|
||||
Mu = bitem.mu,
|
||||
Mu = string.IsNullOrEmpty(bitem.mu) ? null : bitem.mu,
|
||||
// تعداد
|
||||
Am = bitem.am,
|
||||
// مبلغ واحد
|
||||
@@ -341,104 +341,104 @@ namespace Back.Controllers
|
||||
// مبلغ کل کالا / خدمت
|
||||
Tsstam = bitem.tsstam,
|
||||
Cfee = bitem.cfee,
|
||||
Cut = bitem.cut,
|
||||
Cut = string.IsNullOrEmpty(bitem.cut) ? null : bitem.cut,
|
||||
Exr = bitem.exr,
|
||||
Odt = bitem.odt,
|
||||
Odt = string.IsNullOrEmpty(bitem.odt) ? null : bitem.odt,
|
||||
Odr = bitem.odr,
|
||||
Odam = bitem.odam,
|
||||
Olt = bitem.olt,
|
||||
Olt =string.IsNullOrEmpty(bitem.olt) ? null : bitem.olt,
|
||||
Olr = bitem.olr,
|
||||
Olam = bitem.olam,
|
||||
Cop = bitem.cop,
|
||||
Vop = bitem.vop,
|
||||
Bsrn = bitem.bsrn,
|
||||
Bsrn =string.IsNullOrEmpty(bitem.bsrn) ? null :bitem.bsrn,
|
||||
|
||||
|
||||
};
|
||||
|
||||
else if (header.Inty == 1 && header.Inp == 2)
|
||||
item = new InvoiceBodyDto
|
||||
{
|
||||
//شناسه کالا / خدمت
|
||||
Sstid = bitem.sstid,
|
||||
//شرح کاال/خدمت
|
||||
Sstt = bitem.sstt,
|
||||
//واحد اندازه گیری
|
||||
Mu = bitem.mu,
|
||||
// تعداد
|
||||
Am = bitem.am,
|
||||
// مبلغ واحد
|
||||
Fee = bitem.fee,
|
||||
//مبلغ قبل از تخفیف
|
||||
Prdis = bitem.prdis,
|
||||
//مبلغ تخفیف
|
||||
Dis = bitem.dis,
|
||||
//مبلغ بعد از تخفیف
|
||||
Adis = bitem.adis,
|
||||
//نرخ مالیات بر ارزش افزوده
|
||||
Vra = bitem.vra,
|
||||
//مبلغ مالیات بر ارزش افزوده
|
||||
Vam = bitem.vam,
|
||||
// مبلغ کل کالا / خدمت
|
||||
Tsstam = bitem.tsstam,
|
||||
Cfee = bitem.cfee,
|
||||
Cut = bitem.cut,
|
||||
Exr = bitem.exr,
|
||||
Odt = bitem.odt,
|
||||
Odr = bitem.odr,
|
||||
Odam = bitem.odam,
|
||||
Olt = bitem.olt,
|
||||
Olr = bitem.olr,
|
||||
Olam = bitem.olam,
|
||||
Cop = bitem.cop,
|
||||
Vop = bitem.vop,
|
||||
Bsrn = bitem.bsrn,
|
||||
//else if (header.Inty == 1 && header.Inp == 2)
|
||||
// item = new InvoiceBodyDto
|
||||
// {
|
||||
// //شناسه کالا / خدمت
|
||||
// Sstid = bitem.sstid,
|
||||
// //شرح کاال/خدمت
|
||||
// Sstt = bitem.sstt,
|
||||
// //واحد اندازه گیری
|
||||
// Mu = bitem.mu,
|
||||
// // تعداد
|
||||
// Am = bitem.am,
|
||||
// // مبلغ واحد
|
||||
// Fee = bitem.fee,
|
||||
// //مبلغ قبل از تخفیف
|
||||
// Prdis = bitem.prdis,
|
||||
// //مبلغ تخفیف
|
||||
// Dis = bitem.dis,
|
||||
// //مبلغ بعد از تخفیف
|
||||
// Adis = bitem.adis,
|
||||
// //نرخ مالیات بر ارزش افزوده
|
||||
// Vra = bitem.vra,
|
||||
// //مبلغ مالیات بر ارزش افزوده
|
||||
// Vam = bitem.vam,
|
||||
// // مبلغ کل کالا / خدمت
|
||||
// Tsstam = bitem.tsstam,
|
||||
// Cfee = bitem.cfee,
|
||||
// Cut = bitem.cut,
|
||||
// Exr = bitem.exr,
|
||||
// Odt = bitem.odt,
|
||||
// Odr = bitem.odr,
|
||||
// Odam = bitem.odam,
|
||||
// Olt = bitem.olt,
|
||||
// Olr = bitem.olr,
|
||||
// Olam = bitem.olam,
|
||||
// Cop = bitem.cop,
|
||||
// Vop = bitem.vop,
|
||||
// Bsrn = bitem.bsrn,
|
||||
|
||||
|
||||
};
|
||||
// };
|
||||
|
||||
else if (header.Inty == 1 && header.Inp == 3)
|
||||
item = new InvoiceBodyDto
|
||||
{
|
||||
//شناسه کالا / خدمت
|
||||
Sstid = bitem.sstid,
|
||||
//شرح کاال/خدمت
|
||||
Sstt = bitem.sstt,
|
||||
//واحد اندازه گیری
|
||||
Mu = bitem.mu,
|
||||
// تعداد
|
||||
Am = bitem.am,
|
||||
// مبلغ واحد
|
||||
Fee = bitem.fee,
|
||||
//مبلغ قبل از تخفیف
|
||||
Prdis = bitem.prdis,
|
||||
//مبلغ تخفیف
|
||||
Dis = bitem.dis,
|
||||
//مبلغ بعد از تخفیف
|
||||
Adis = bitem.adis,
|
||||
//نرخ مالیات بر ارزش افزوده
|
||||
Vra = bitem.vra,
|
||||
//مبلغ مالیات بر ارزش افزوده
|
||||
Vam = bitem.vam,
|
||||
// مبلغ کل کالا / خدمت
|
||||
Tsstam = bitem.tsstam,
|
||||
Cfee = bitem.cfee,
|
||||
Cut = bitem.cut,
|
||||
Exr = bitem.exr,
|
||||
Odt = bitem.odt,
|
||||
Odr = bitem.odr,
|
||||
Odam = bitem.odam,
|
||||
Olt = bitem.olt,
|
||||
Olr = bitem.olr,
|
||||
Olam = bitem.olam,
|
||||
Cop = bitem.cop,
|
||||
Vop = bitem.vop,
|
||||
Bsrn = bitem.bsrn,
|
||||
Consfee = bitem.consfee,
|
||||
Spro = bitem.spro,
|
||||
Bros = bitem.bros,
|
||||
Tcpbs = bitem.tcpbs,
|
||||
};
|
||||
//else if (header.Inty == 1 && header.Inp == 3)
|
||||
// item = new InvoiceBodyDto
|
||||
// {
|
||||
// //شناسه کالا / خدمت
|
||||
// Sstid = bitem.sstid,
|
||||
// //شرح کاال/خدمت
|
||||
// Sstt = bitem.sstt,
|
||||
// //واحد اندازه گیری
|
||||
// Mu = bitem.mu,
|
||||
// // تعداد
|
||||
// Am = bitem.am,
|
||||
// // مبلغ واحد
|
||||
// Fee = bitem.fee,
|
||||
// //مبلغ قبل از تخفیف
|
||||
// Prdis = bitem.prdis,
|
||||
// //مبلغ تخفیف
|
||||
// Dis = bitem.dis,
|
||||
// //مبلغ بعد از تخفیف
|
||||
// Adis = bitem.adis,
|
||||
// //نرخ مالیات بر ارزش افزوده
|
||||
// Vra = bitem.vra,
|
||||
// //مبلغ مالیات بر ارزش افزوده
|
||||
// Vam = bitem.vam,
|
||||
// // مبلغ کل کالا / خدمت
|
||||
// Tsstam = bitem.tsstam,
|
||||
// Cfee = bitem.cfee,
|
||||
// Cut = bitem.cut,
|
||||
// Exr = bitem.exr,
|
||||
// Odt = bitem.odt,
|
||||
// Odr = bitem.odr,
|
||||
// Odam = bitem.odam,
|
||||
// Olt = bitem.olt,
|
||||
// Olr = bitem.olr,
|
||||
// Olam = bitem.olam,
|
||||
// Cop = bitem.cop,
|
||||
// Vop = bitem.vop,
|
||||
// Bsrn = bitem.bsrn,
|
||||
// Consfee = bitem.consfee,
|
||||
// Spro = bitem.spro,
|
||||
// Bros = bitem.bros,
|
||||
// Tcpbs = bitem.tcpbs,
|
||||
// };
|
||||
|
||||
#endregion
|
||||
InvoiceBody.Add(item);
|
||||
|
@@ -98,7 +98,6 @@ namespace Back.Data.Models
|
||||
#endregion
|
||||
|
||||
#region fild
|
||||
// public string? ExternalAccessCode { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string? Des { get; set; }
|
||||
public InvoiceType invoiceType { get; set; }
|
||||
@@ -160,6 +159,12 @@ namespace Back.Data.Models
|
||||
public bool PreparedtoSendtoTax { get; set; } = false;
|
||||
public int LastChangeUserID { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
//عیار
|
||||
[MaxLength(26)]
|
||||
public decimal? cui { get; set; }
|
||||
//شماره اقتصادی آژانس
|
||||
[MaxLength(14)]
|
||||
public string? tinc { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Navigation
|
||||
|
Reference in New Issue
Block a user