PosTrxLineItem.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using System;
  2. namespace Dfs.WayneChina.PosModelMini
  3. {
  4. public class PosTrxLineItem
  5. {
  6. /// <summary>
  7. /// Unique id the current POS Trx line item.
  8. /// </summary>
  9. public Guid Id { get; set; }
  10. /// <summary>
  11. /// the index of Ringup sequence.
  12. /// </summary>
  13. public int LineNum { get; set; }
  14. /// <summary>
  15. /// Unique id of the POS item.
  16. /// </summary>
  17. public Guid PosItemId { get; set; }
  18. /// <summary>
  19. /// PosTrxItem link to a PosItem.
  20. /// </summary>
  21. public virtual PosItem Item { get; set; }
  22. /// <summary>
  23. /// Quantity
  24. /// </summary>
  25. public decimal Qty { get; set; }
  26. /// <summary>
  27. /// Whether the current line item is voided (excluded from current trx) or not.
  28. /// </summary>
  29. public bool Voided { get; set; }
  30. public Guid PosTrxId { get; set; }
  31. /// <summary>
  32. /// Belong to which PosTrx
  33. /// </summary>
  34. public virtual PosTrx PosTrx { get; set; }
  35. /// <summary>
  36. /// Gross amount.
  37. /// </summary>
  38. public decimal GrossAmount { get; set; }
  39. /// <summary>
  40. /// Indicates which pump the fuel item is sold.
  41. /// </summary>
  42. public int? FuelItemSoldOnPumpId { get; set; }
  43. /// <summary>
  44. /// Indicates which nozzle the fuel item is sold.
  45. /// </summary>
  46. public int? FuelItemSoldOnPumpNozzleId { get; set; }
  47. /// <summary>
  48. /// the amount which caculated by local FC, typically Fuel item's amount should not re-cacualted in server again(by Qty*Price, may cause rounding issue),
  49. /// just trust the value from local.
  50. /// </summary>
  51. public decimal? FuelItemOriginalGrossAmount { get; set; }
  52. /// <summary>
  53. /// used for query, lock, unlock fuel trx from fdc server, only for fuel sale.
  54. /// </summary>
  55. public string FuelItemFdcTransactionSeqNo { get; set; }
  56. /// <summary>
  57. /// used for query, lock, unlock fuel trx from fdc server, only for fuel sale.
  58. /// </summary>
  59. public int? FuelItemFdcReleaseTokenAttribute { get; set; }
  60. //public virtual List<PosTrxDiscount> AppliedInPosTrxDiscounts { get; set; }
  61. /// <summary>
  62. /// Can be used to link any information, like attendant ID, etc.
  63. /// </summary>
  64. public string FuelItemTag { get; set; }
  65. /// <summary>
  66. /// Amount accumulation of the pump.
  67. /// </summary>
  68. public decimal? FuelItemPumpTotalizerMoney { get; set; }
  69. /// <summary>
  70. /// Volume accumulation of the pump.
  71. /// </summary>
  72. public decimal? FuelItemPumpTotalizerVolume { get; set; }
  73. /// <summary>
  74. /// Url to the QR code to get the electronic invoice.
  75. /// </summary>
  76. public string EInvoiceQrUrl { get; set; }
  77. }
  78. }