using CsvHelper.Configuration.Attributes; namespace PowderCoating.Application.DTOs.Import; /// /// DTO for importing journal entry lines from CSV. Column names match the native journal-entry-lines /// export (ExportJournalEntryLinesCsv). Lines are matched to their parent entry by EntryNumber and the /// account is resolved from AccountNumber (required — a JE line is meaningless without its account). /// Either DebitAmount or CreditAmount is non-zero per line, not both. /// public class JournalEntryLineImportDto { [Name("EntryNumber")] public string? EntryNumber { get; set; } /// Account number (Chart of Accounts) this line debits or credits. Required. [Name("AccountNumber")] public string? AccountNumber { get; set; } [Name("DebitAmount")] public decimal DebitAmount { get; set; } [Name("CreditAmount")] public decimal CreditAmount { get; set; } [Name("Description")] public string? Description { get; set; } [Name("LineOrder")] public int LineOrder { get; set; } }