taxengine:integration:code_samples:c_sample_code
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
taxengine:integration:code_samples:c_sample_code [2015/08/06 17:21] – [Console App in C#] chuck | taxengine:integration:code_samples:c_sample_code [2015/08/06 19:56] – [Console App in C#] chuck | ||
---|---|---|---|
Line 38: | Line 38: | ||
string companyDatabase = " | string companyDatabase = " | ||
string systemDatabase = " | string systemDatabase = " | ||
+ | string itemCategory = " | ||
Int16 timeOutSeconds = 60; | Int16 timeOutSeconds = 60; | ||
bool displayProgessBar = true; | bool displayProgessBar = true; | ||
Line 100: | Line 101: | ||
int lineNumber = 1; | int lineNumber = 1; | ||
txEngn.LineAdd(lineNumber); | txEngn.LineAdd(lineNumber); | ||
- | |||
do | do | ||
{ | { | ||
- | /// We now provide the ZIP code. | + | |
+ | string ic = Console.ReadLine(); | ||
+ | if (ic != "" | ||
+ | itemCategory = ic; | ||
+ | if (itemCategory != "" | ||
+ | { | ||
+ | try | ||
+ | { | ||
+ | txEngn.LineItemCategory = itemCategory; | ||
+ | Console.WriteLine(" | ||
+ | } | ||
+ | catch (Exception e) | ||
+ | { | ||
+ | Console.WriteLine(e.Message); | ||
+ | if (txEngn.LineItemCategory == "" | ||
+ | Console.WriteLine(" | ||
+ | else | ||
+ | Console.WriteLine(" | ||
+ | Console.WriteLine("" | ||
+ | } | ||
+ | } | ||
+ | | ||
Console.WriteLine(" | Console.WriteLine(" | ||
zip = Console.ReadLine(); | zip = Console.ReadLine(); | ||
Line 118: | Line 139: | ||
continue; | continue; | ||
} | } | ||
+ | // Fetch the default tax schedule for this zip. | ||
+ | txEngn.LineTaxScheduleSelect(); | ||
/* | /* | ||
* At this point, the Portal object will have identified and made | * At this point, the Portal object will have identified and made |
taxengine/integration/code_samples/c_sample_code.txt · Last modified: 2015/08/06 20:00 by chuck