Adam007
Programmer
- Oct 18, 2009
- 21
Hey Guys,
I am trying to set the TAXCLASS1 & TAXCLASS2 fields while creating an AP Batch from C#.
Code Sample:
header.TAXCLASS1 & header.TAXCLASS2 are both 2, but when i actually open the AP Batch in Accpac the TAXCLASS1 is set to 1.
Any ideas would be appreciated.
I am trying to set the TAXCLASS1 & TAXCLASS2 fields while creating an AP Batch from C#.
Code Sample:
Code:
tempObj = header.TAXCLASS1;
APINVOICE1header.Fields.get_FieldByName("TAXCLASS1").set_Value(ref tempObj);
tempObj = header.TAXCLASS2;
APINVOICE1header.Fields.get_FieldByName("TAXCLASS2").set_Value(ref tempObj);
header.TAXCLASS1 & header.TAXCLASS2 are both 2, but when i actually open the AP Batch in Accpac the TAXCLASS1 is set to 1.
Any ideas would be appreciated.