Files
moadiran/Shared/DTOs/InvoiceDtos.cs

168 lines
6.3 KiB
C#
Raw Normal View History

2024-05-12 22:02:49 +03:30
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
2025-01-25 12:57:07 +03:30
using System.Security.Principal;
2024-05-12 22:02:49 +03:30
using System.Text;
using System.Threading.Tasks;
namespace Shared.DTOs
{
2024-05-13 13:02:09 +03:30
public class NUInvoiceDTO
{
public int? ID { get; set; }
public string Title { get; set; }
public int? PatternID { get; set; }
public int CustomerID { get; set; }
public string InvoicIssueDate { get; set; }
public string InvoiceDate { get; set; }
public string? Des { get; set; }
}
2024-05-17 23:05:46 +03:30
public class InvoiceGridDTO
{
[Display(Name = "شناسه")]
public int ID { get; set; }
[Display(Name = "عنوان")]
public string Title { get; set; }//
[Display(Name = "نوع صورتحساب")]
public string? invoiceTypeTitle { get; set; }//
public int CustomerID { get; set; }//
[Display(Name = "مشتری")]
public string CustomerName { get; set; }//
public string? Udate { get; set; }
[Display(Name = "تاریخ صدور")]
public string InvoicIssueDate { get; set; }//
//مجموع تخفیفات
[Display(Name = "مجموع تخفیف")]
public decimal? tdis { get; set; }
//مجموع مالیات بر ارزش افزوده
[MaxLength(18)]
[Display(Name = "مجموع مالیات")]
public decimal? tvam { get; set; }
//مجموع صورتحساب
[MaxLength(18)]
[Display(Name = "مجموع صورتحساب")]
public decimal? tbill { get; set; }
2024-05-30 15:08:36 +03:30
[Display(Name = "صورتحساب مرجع")]
public int? BillReference { get; set; }
2024-05-17 23:05:46 +03:30
}
2024-05-12 22:02:49 +03:30
public class InvoiceDTO
{
2024-05-14 14:58:25 +03:30
[Display(Name = "شناسه")]
2024-05-12 22:02:49 +03:30
public int ID { get; set; }
2024-05-14 14:58:25 +03:30
[Display(Name = "عنوان")]
2024-05-16 23:40:32 +03:30
public string Title { get; set; }//
public InvoiceType? invoiceType { get; set; }//
public int? PatternID { get; set; }//
public string? PatternTitle { get; set; }//
2024-05-14 14:58:25 +03:30
[Display(Name = "نوع صورتحساب")]
2024-05-16 23:40:32 +03:30
public string? invoiceTypeTitle { get; set; }//
public int CustomerID { get; set; }//
2024-05-14 14:58:25 +03:30
[Display(Name = "مشتری")]
2024-05-16 23:40:32 +03:30
public string CustomerName { get; set; }//
2024-05-12 22:02:49 +03:30
public string? Udate { get; set; }
2024-05-14 14:58:25 +03:30
[Display(Name = "تاریخ صدور")]
2024-05-16 23:40:32 +03:30
public string InvoicIssueDate { get; set; }//
public string InvoiceDate { get; set; }//
2024-05-13 13:02:09 +03:30
public bool PreparedtoSendtoTax { get; set; }
2024-05-12 22:02:49 +03:30
public string? Des { get; set; }
//مجموع تخفیفات
2024-05-16 23:40:32 +03:30
[Display(Name = "مجموع تخفیف")]
2024-05-12 22:02:49 +03:30
public decimal? tdis { get; set; }
//مجموع مالیات بر ارزش افزوده
[MaxLength(18)]
2024-05-14 14:58:25 +03:30
[Display(Name = "مجموع مالیات")]
2024-05-12 22:02:49 +03:30
public decimal? tvam { get; set; }
//مجموع صورتحساب
[MaxLength(18)]
2024-05-14 14:58:25 +03:30
[Display(Name = "مجموع صورتحساب")]
2024-05-12 22:02:49 +03:30
public decimal? tbill { get; set; }
public int? BillReference { get; set; }
2024-05-30 15:08:36 +03:30
public bool IsDeleted { get; set; }
2024-07-06 16:18:23 +03:30
//public string? ExternalAccessCode { get; set; }
2024-05-23 01:16:59 +03:30
public ICollection<InvoiceItemDTO> items { get; set; }=new List<InvoiceItemDTO>();
public ICollection<InvoicePaymentDTO> payments { get; set; } = new List<InvoicePaymentDTO>();
2024-05-12 22:02:49 +03:30
// public ICollection<InvoiceStatusDto> Invoicestatuschanges { get; set; }
2024-06-12 07:54:43 +03:30
public ICollection<SentTaxDto> InvoiceSendTaxs { get; set; }=new List<SentTaxDto> { };
2024-05-12 22:02:49 +03:30
2024-08-06 17:24:25 +03:30
[MaxLength(10)]
[Display(Name = "سریال صورتحساب داخلی حافظه مالیاتی")]
public string? inno { get; set; }
2025-01-24 19:18:17 +03:30
public bool HasaRemittance { get; set; }
2024-08-06 17:24:25 +03:30
2024-05-12 22:02:49 +03:30
}
public class InvoiceItemDTO
{
public int? ID { get; set; }
public int CODID { get; set; }
// شرح کاال/خدمت
public string? sstt { get; set; }
2024-05-23 01:16:59 +03:30
//واحد اندازهگیری------
2024-05-12 22:02:49 +03:30
public string? mu { get; set; }
//تعداد/مقدار
public decimal am { get; set; }
//مبلغ واحد
public decimal fee { get; set; }
//نرخ مالیات بر ازش افزوده
public decimal? vra { get; set; }
//مبلغ مالیات بر ارزش افزوده
public decimal? vam { get; set; }
//مبلغ تخفیف
2024-05-23 19:59:19 +03:30
public decimal? dis { get; set; } = 0;
2024-05-12 22:02:49 +03:30
//مبلغ کل کالا/خدمت
public decimal? tsstam { get; set; }
2024-05-23 19:59:19 +03:30
//مبلغ قبل از تخفیف
public decimal? prdis { get; set; }
//مبلغ بعد از تخفیف
public decimal? adis { get; set; }
2024-05-12 22:02:49 +03:30
}
public class InvoicePaymentDTO
{
public int? ID { get; set; }
2024-09-08 21:50:17 +03:30
//[MaxLength(9)]
2024-05-12 22:02:49 +03:30
public string? iinn { get; set; }
//شماره پذیرنده فروشگاهی
2024-09-08 21:50:17 +03:30
//[MaxLength(14)]
2024-05-12 22:02:49 +03:30
public string? acn { get; set; }
//شماره پایانه
2024-09-08 21:50:17 +03:30
//[MaxLength(8)]
2024-05-12 22:02:49 +03:30
public string? trmn { get; set; }
//روش پرداخت
2024-09-08 21:50:17 +03:30
//[MaxLength(2)]
2024-05-12 22:02:49 +03:30
public int? pmt { get; set; }
2024-09-08 17:23:33 +03:30
public string? paymentMethod { get; set; }
2024-05-12 22:02:49 +03:30
//شماره پیگیری/شماره مرجع
2024-09-08 21:50:17 +03:30
//[MaxLength(14)]
2024-05-12 22:02:49 +03:30
public string? trn { get; set; }
//شماره کارت پرداخت کننده صورتحساب
2024-09-08 21:50:17 +03:30
//[MaxLength(16)]
2024-05-12 22:02:49 +03:30
public string? pcn { get; set; }
//شماره/شناسه ملی/کد فراگیر اتباع غیر ایرانی پرداخت کننده صورتحساب
[MaxLength(12)]
public string? pid { get; set; }
//تاریخ و زمان پرداخت
2024-09-08 21:50:17 +03:30
public string? PaymentDateTime { get; set; } = DateTime.Now.ConvertMiladiToShamsiinFront().ShamciToFormatShamciinFront();
2024-05-12 22:02:49 +03:30
//مبلغ پرداختی
2024-09-08 21:50:17 +03:30
//[MaxLength(18)]
2024-08-28 00:29:35 +03:30
public long? pv { get; set; }
2024-05-12 22:02:49 +03:30
}
//------------------------------
public class InvoiceStatusDto
{
public string Date { get; set; }
public string User { get; set; }
public string FromStatus { get; set; }
public string ToStatus { get; set; }
}
public class InvoiceSendTaxDTO
{
public int SendTaxID { get; set; }
public string Date { get; set; }
public string Status { get; set; }
public string Type { get; set; }
}
}