Skip to content

Commit bd53d4d

Browse files
committed
Fix(excel-recon-writer): fix wrong registration name
1 parent 3645db8 commit bd53d4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DebitExpress.VatRelief/Utils/ExcelReconWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private void WriteSalesData(IXLWorksheet sheet, Info info, List<Sales> sales)
101101
sheet.Cell("A2").Value = "RECONCILIATION OF LISTING FOR ENFORCEMENT";
102102
sheet.Cell("A6").Value = $"TIN : {info.Tin.Strip()}";
103103

104-
var name = info.NonIndividual ? $"{info.LastName}, {info.FirstName} {info.MiddleName}" : info.RegName;
104+
var name = info.NonIndividual ? info.RegName : $"{info.LastName}, {info.FirstName} {info.MiddleName}";
105105
sheet.Cell("A7").Value = $"OWNER'S NAME: {name}";
106106

107107
sheet.Cell("A8").Value = $"OWNER'S TRADE NAME : {info.TradeName}";
@@ -195,7 +195,7 @@ private void WritePurchasesData(IXLWorksheet sheet, Info info, List<Purchases> p
195195
sheet.Cell("A2").Value = "RECONCILIATION OF LISTING FOR ENFORCEMENT";
196196
sheet.Cell("A6").Value = $"TIN : {info.Tin.Strip()}";
197197

198-
var name = $"{info.LastName}, {info.FirstName} {info.MiddleName}";
198+
var name = info.NonIndividual ? info.RegName : $"{info.LastName}, {info.FirstName} {info.MiddleName}";
199199
sheet.Cell("A7").Value = $"OWNER'S NAME: {name}";
200200

201201
sheet.Cell("A8").Value = $"OWNER'S TRADE NAME : {info.TradeName}";

0 commit comments

Comments
 (0)