namespace AccountsDAL.DTO.Payment { // Dual PayTo/PayFrom account+currency projection used only by PaymentToVoucher — one row // per TPAYMENTDETAIL, carrying both sides' account details since a single detail row can // contribute to both a PayTo voucher line and a PayFrom voucher line. public class PaymentDetailForVoucherDTO { public int PaymentDetailId { get; set; } public double AmountRequired { get; set; } public double AmountPaid { get; set; } public string Remarks { get; set; } = string.Empty; public int PayToAccountId { get; set; } = -1; public string PayToAccountCode { get; set; } = string.Empty; public string PayToAccountName { get; set; } = string.Empty; public byte PayToAccountBillAllocationType { get; set; } public int PayToAccountType { get; set; } public int PayToAccountGroupId { get; set; } public int PayToCurrencyId { get; set; } public string PayToCurrencyCode { get; set; } = string.Empty; public string PayToCurrencyName { get; set; } = string.Empty; public int PayFromAccountId { get; set; } = -1; public string PayFromAccountCode { get; set; } = string.Empty; public string PayFromAccountName { get; set; } = string.Empty; public byte PayFromAccountBillAllocationType { get; set; } public int PayFromAccountType { get; set; } public int PayFromAccountGroupId { get; set; } public int PayFromCurrencyId { get; set; } public string PayFromCurrencyCode { get; set; } = string.Empty; public string PayFromCurrencyName { get; set; } = string.Empty; } }