File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 3
3
public readonly struct Info
4
4
{
5
5
public Info ( string tin ,
6
- int quarter ,
7
6
int month ,
8
7
int year ,
9
8
string regName = "" ,
@@ -20,7 +19,6 @@ public Info(string tin,
20
19
Tin = tin ;
21
20
Month = month ;
22
21
Year = year ;
23
- Quarter = quarter ;
24
22
RegName = regName ;
25
23
LastName = lastName ;
26
24
FirstName = firstName ;
@@ -34,7 +32,6 @@ public Info(string tin,
34
32
}
35
33
36
34
public string Tin { get ; }
37
- public int Quarter { get ; }
38
35
public int Month { get ; }
39
36
public int Year { get ; }
40
37
public string RegName { get ; }
Original file line number Diff line number Diff line change @@ -74,23 +74,17 @@ private Info GetInfo(IXLWorkbook workbook)
74
74
75
75
var nonIndividual = infoSheet . Cell ( "B12" ) . Value . ToString ( ) ?? string . Empty ;
76
76
77
- var quarterStr = infoSheet . Cell ( "B15" ) . Value . ToString ( ) ;
78
- if ( string . IsNullOrEmpty ( quarterStr ) ) throw new ArgumentException ( "Quarter is required in INFO sheet cell B15" ) ;
79
- var quarterGet = int . TryParse ( quarterStr , out var quarter ) ;
80
- if ( ! quarterGet ) throw new ArgumentException ( "Invalid [Quarter] value in INFO sheet cell B15" ) ;
81
-
82
- var monthStr = infoSheet . Cell ( "B16" ) . Value . ToString ( ) ;
77
+ var monthStr = infoSheet . Cell ( "B15" ) . Value . ToString ( ) ;
83
78
if ( string . IsNullOrEmpty ( monthStr ) ) throw new ArgumentException ( "Starting month is required in INFO sheet cell B16" ) ;
84
79
var monthGet = _months . TryGetValue ( monthStr , out var month ) ;
85
80
if ( ! monthGet ) throw new ArgumentException ( "Invalid [Starting Month] value in INFO sheet cell B16" ) ;
86
81
87
- var yearStr = infoSheet . Cell ( "B17 " ) . Value . ToString ( ) ;
82
+ var yearStr = infoSheet . Cell ( "B16 " ) . Value . ToString ( ) ;
88
83
if ( string . IsNullOrEmpty ( yearStr ) ) throw new ArgumentException ( "Year is required in INFO sheet cell B17" ) ;
89
84
var yearGet = int . TryParse ( yearStr , out var year ) ;
90
85
if ( ! yearGet ) throw new ArgumentException ( "Invalid [Year] value in INFO sheet cell B17" ) ;
91
86
92
87
return new Info ( tin . Strip ( ) ,
93
- quarter ,
94
88
month ,
95
89
year ,
96
90
regName . CleanUp ( ) ,
You can’t perform that action at this time.
0 commit comments