Created
July 5, 2023 07:49
-
-
Save otienoelvis/e60db4d50744bf5700f3860a1b11f21b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel.DataAnnotations; | |
using DAL.ViewModels.Enums; | |
namespace DAL.ViewModels; | |
public class ReceiptModelDto | |
{ | |
[Required] | |
public string businessId { get; set; } | |
[Required] | |
public string pin { get; set; } | |
[Required] | |
public string branchId { get; set; } | |
[Required] | |
public int traderInvoiceNumber { get; set; } | |
[Required] | |
public int InvoiceNumber { get; set; } | |
[Required] | |
public int originalInvoiceNumber { get; set; } | |
public string? customerPin { get; set; } | |
public string? customerName { get; set; } | |
public string salesTypeCode { get; set; } | |
public string? receiptTypeCode { get; set; } | |
// public SalesReceiptType receiptTypeCode { get; set; } | |
public string? paymentTypeCode { get; set; } | |
// public PaymentMethod paymentTypeCode { get; set; } | |
[Required] | |
public string invoiceStatusCode { get; set; } | |
// public TransactionProgress invoiceStatusCode { get; set; } | |
[Required] | |
public string validatedDate { get; set; } | |
[Required] | |
public string saleDate { get; set; } | |
public string stockReleaseDate { get; set; } | |
public object? cancelRequestedDate { get; set; } | |
public object? canceledDate { get; set; } | |
public object? creditNoteDate { get; set; } | |
public string? creditNoteReasonCode { get; set; } | |
// public CreditNoteReason? creditNoteReasonCode { get; set; } | |
[Required] | |
public int totalItemCount { get; set; } | |
[Required] | |
public int taxableAmountA { get; set; } | |
[Required] | |
public int taxableAmountB { get; set; } | |
[Required] | |
public int taxableAmountC { get; set; } | |
[Required] | |
public int taxableAmountD { get; set; } | |
[Required] | |
public int taxableAmountE { get; set; } | |
[Required] | |
public int taxRateA { get; set; } | |
[Required] | |
public int taxRateB { get; set; } | |
[Required] | |
public int taxRateC { get; set; } | |
[Required] | |
public int taxRateD { get; set; } | |
[Required] | |
public int taxRateE { get; set; } | |
[Required] | |
public int taxAmountA { get; set; } | |
[Required] | |
public int taxAmountB { get; set; } | |
[Required] | |
public int taxAmountC { get; set; } | |
[Required] | |
public int taxAmountD { get; set; } | |
[Required] | |
public int taxAmountE { get; set; } | |
[Required] | |
public int totalTaxableAmount { get; set; } | |
[Required] | |
public int totalTaxAmount { get; set; } | |
[Required] | |
public int totalAmount { get; set; } | |
[Required] | |
public string purchaseAcceptYN { get; set; } | |
public string? remark { get; set; } | |
[Required] | |
public string registrationId { get; set; } | |
[Required] | |
public string registrationName { get; set; } | |
[Required] | |
public string modifierId { get; set; } | |
[Required] | |
public string modifierName { get; set; } | |
public CustomerReceiptDto receipt { get; set; } | |
public List<ItemListDto> itemList { get; set; } | |
} | |
public class CustomerReceiptDto | |
{ | |
public string? customerPin { get; set; } | |
public string? customerMobileNo { get; set; } | |
[Required] | |
public string receiptPublishedDate { get; set; } | |
public string? tradeName { get; set; } | |
public string? address { get; set; } | |
public string? topMessage { get; set; } | |
public string? bottomMessage { get; set; } | |
[Required] | |
public string purchaseAcceptYN { get; set; } | |
} | |
public class ItemListDto | |
{ | |
[Required] | |
public int itemSequenceNumber { get; set; } | |
public string itemCode { get; set; } | |
[Required] | |
public string itemClassificationCode { get; set; } | |
[Required] | |
public string itemName { get; set; } | |
public string? barcode { get; set; } | |
[Required] | |
public string packagingUnitCode { get; set; } | |
// public PackagingUnitCode packagingUnitCode { get; set; } | |
[Required] | |
public int package { get; set; } | |
[Required] | |
public string quantityUnitCode { get; set; } | |
// public UnitOfQuantity quantityUnitCode { get; set; } | |
[Required] | |
public int quantity { get; set; } | |
[Required] | |
public int unitPrice { get; set; } | |
[Required] | |
public int supplyAmount { get; set; } | |
[Required] | |
public int discountRate { get; set; } | |
[Required] | |
public int discountAmount { get; set; } | |
public string? insuranceCompanyCode { get; set; } | |
public string? insuranceCompanyName { get; set; } | |
public string? insuranceRate { get; set; } | |
public string? insuranceAmount { get; set; } | |
[Required] | |
public string taxationTypeCode { get; set; } | |
// public TaxType taxationTypeCode { get; set; } | |
[Required] | |
public int taxableAmount { get; set; } | |
[Required] | |
public int taxAmount { get; set; } | |
[Required] | |
public int totalAmount { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment