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