Portal Class |
Namespace: KampData.TaxEngine.API
The Portal type exposes the following members.
Name | Description | |
---|---|---|
AddressingEnabled |
Returns true if Zip Addressing is enabled for the postalCode
and countryCode sent in.
| |
CreateDynamicsSopModule |
This method automatically creates the default settings
to work with the Microsoft Dynamics GP Sales Transaction
Entry (SOP) module.
| |
CreateTables |
Create the KampData™ TaxEngine's
Microsoft SQL Server® tables.
| |
DateCheck |
This method will convert a string value to a .NET date string. For
example, a newValue of 12505 will return 1/25/2005. The day can be one
or two characters. The month must be 2 characters. The year can be two
or four characters. Slashes are not required. To modify an existing date,
all that is required is to enter the day or the day and month. For example
if the originalValue = "1/25/2005" and newValue = "7" the return value
will be 1/7/2005.
| |
DecimalFromString |
This method will convert a string value such as $350.95 or 7.125% to
its decimal equivalent.
| |
DetailAdd |
Add a Microsoft Dynamics® GP type tax detail record to
the current line.
| |
DocCalculateTax |
Calculate the document tax (all details for all lines)
| |
DocChangesReset |
This method resets the changes tracked for the document
including lines and details. Calling this method will result in
the DocChanged property returning false until the document is
subsequently modified.
As a general rule, this method should only be called after
creating a new document and supplying all of your default
values.
| |
DocClear |
This method discards the document currently held in the TaxEngine.
If the document has been saved previously, it simply releases it.
If the document has never been saved, it deletes it.
| |
DocDelete |
Delete the current document from the TaxEngine tables.
| |
DocGetDefaultJurisdictionID |
This method will attempt to identify and update each line-item's
Jurisdiction ID based on the default tax schedule for that
tax location.
| |
DocLoaded |
This method returns true if the TaxEngine.Document is not null.
| |
DocPost |
Flag a document as posted. This is used primarily for reporting purposes.
Post the document when the transaction is final and should be included
in your tax reports. This method will also save the document.
| |
DocPrint |
This method will print out the current document. This report
is extracted from SQL Server and will therefore reflect the
values that have been saved to the server. It is recommended that
your code check to see if DocChanged = true and if so to save
the document before printing.
| |
DocSave |
Saves the document if all requirements have been met, and
then clears the TaxEngine Document.
| |
DocSave(Boolean, Boolean) |
Allows you to save the document to the TaxEngine's SQL Tables
without meeting requirements. Allows you to save without clearing.
| |
DocTaxDetail |
This method returns a single TrxTaxDetail record from the
DocTaxDetails() array list. Added to assist
with COM or other applications that do not support array lists.
| |
DocTaxDetails |
An ArrayList of the current document's tax details. The list is available in
various forms as specified in the detailLevel. Available choices are as
follows:
Detail = Each tax detail in the document will be included.
LineItem = Each tax detail in the current line will be included.
Order = A summary of the tax details for the document (If multiple lines
include the same detail, then they will be combined into a single detail).
ShipTo = A summary of the tax details for the destination geocode (If
multiple lines include the same detail, then they will be combined into
a single detail).
Prior = For KampData TaxEngine internal use only.
| |
DocTaxDetailsCount |
A count of the TrxTaxDetail records in DocTaxDetails();
| |
DocTaxDetailsRemove |
Removes all tax details associated with the current document.
| |
DocTaxScheduleDefault |
This method will reassign the default tax schedule from the
customer/vendor address record to the document header and then
call LineTaxScheduleDefault() for each line in the document.
| |
DocTaxScheduleRefresh |
This method will remove the current tax details from this document and replace
them with fresh tax details based on each line's effective tax schedule.
| |
DocTaxScheduleSelect |
This method calls LineTaxScheduleSelect() for each line in the document.
This method then calls DocCalculateTax() to complete the process.
| |
Document(Int32) |
This method will load an existing document identified by the
transaction number provided. This method cannot be used to create
new documents.
| |
Document(String, Int16, String) |
This method will load a document identified by the
document number, document type and module provided.
This method can be used to create
new documents as well as to load existing documents.
| |
Enabled |
This method returns true if the Optional Feature is enabled.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ItemCategories |
All existing item categories.
| |
LineAdd |
Add a line-item to the document.
| |
LineAddressesInZip |
Number of city, county, state combinations in the current ZIP code.
| |
LineAddressList |
The city, county, state combinations in the current ZIP code.
| |
LineAddressValidate |
This method will compare the current address with the addresses
included in the ZipAddress table. If the current address is found,
this method will update the LineGeocode based on the match found and
return true;
If the current address is not
found then this method will
terminate and return false.
| |
LineCitiesInStateAndZip |
Cities in the current state and ZIP code.
| |
LineCitiesInStateAndZipCount |
Number of cities in the current state and ZIP code.
| |
LineCityInStateAndZip |
Provides a way to iterate through the City array list. Added to assist
with COM applications or other applications that do not support array lists.
| |
LineCountiesInState |
Counties in the current state.
| |
LineCountiesInStateCount |
Returns a count of the counties in the current city, state and zip.
| |
LineCountyInState |
Provides a way to iterate through the County array list. Added to assist
with COM applications or other applications that do not support array lists.
| |
LineGetDefaultJurisdictionID |
This method will attempt to identify and update this line-item's
Jurisdiction ID based on the default tax schedule for this
line-item's tax location.
| |
LineMoveNext |
Make the next (higher) LineIndex the current line.
| |
LineMovePrev |
Make the previous (lower) LineIndex the current line.
| |
LineRemove |
Delete the current line.
| |
LineStatesInZip |
States in the current ZIP code.
| |
LineStatesInZipCount |
Returns a count of the states in the zip code.
| |
LineTaxDetailsRemove |
Removes all tax details associated with the current document.
| |
LineTaxScheduleDefault |
This method will start with the tax schedule from the
customer/vendor address or IV site record for the line-item, and
when appropriate, run the tax schedule selection process to replace it.
| |
LineTaxScheduleRefresh |
This method will remove the current tax details from this line and replace
them with fresh tax details based on the effective tax schedule.
| |
LineTaxScheduleSelect |
This method will select a tax schedule based on
the Tax Location, Customer and Item settings.
This feature is not available for the KampData TaxEngine Lite.
| |
LineUseIvSiteAddress |
This method will return true if
DocTransactionType = Sales and the LineShippingType = Pickup
or if
DocTransactionType = Purchases and the LineShippingType = Delivery.
| |
Login(Connection) |
This Login method enables the creation of new instances of
the TaxEngine based on an existing connection.
| |
Login(String, String, String, String, Int16, Boolean) |
This Login method is retained for backward compatibility. It uses
DYNAMICS as the system database and uses encrypted Dynamics passwords.
| |
Login(String, String, String, String, Int16, Boolean, Boolean) |
This Login method is retained for backward compatibility. It uses
DYNAMICS as the system database.
| |
Login(String, String, String, String, String, Int16, Boolean) |
This login works with Dynamics encrypted passwords.
| |
Login(String, String, String, String, String, Int16, Boolean, Boolean) |
This method creates and validates the connection to SQL Server. It also
verifies the existence and checks the state of the TaxEngine tables.
If the
tables do not exist and the user has create rights, this method will
create the missing tables.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MissingTables |
This method checks for missing Microsoft SQL Server® tables.
| |
ModuleDocTypes |
Document types designated to a Transaction Source Module.
| |
Modules |
Transaction Source Modules that have been created using the
KDControlCenter.exe application.
| |
NextDocumentNumber |
Whenever a value is returned for this property,
the document number stored in the KD Module Setup
table is incremented.
Optimistic concurrency is used to insure that each
document number returned is unique.
| |
OnRowUpdated |
This method is used in conjunction with optimistic concurrency checking.
| |
RegistrationStatusUpdate |
This method reads the registration keys from the table and sets
the RegistrationStatus accordingly.
| |
TaxScheduleSelectionEnabled |
Returns true of Tax Schedule Selection is enabled for the
countryCode sent in.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ValidateTables |
Checks the KampData TaxEngine's Microsoft SQL Server® tables
for invalid or missing fields.
|
Name | Description | |
---|---|---|
CompanyDatabase |
Gets the SQL Server database for the Dynamics® GP company.
Used in the connection string.
| |
Connection |
Gets the SQL Server connection object.
This object manages your login to SQL Server,
and is created with TaxEngine.Login();
| |
DetailAccountIndex |
Gets or sets an integer used to identify the general ledger
posting account.
This account would typically be the appropriate sales tax
payable account.
| |
DetailAdministrator |
Gets or sets the government office responsible for the administration
of this tax. The Administrator is typically the name of
the city, state or county followed by the division type.
Example "California: State".
| |
DetailAuthority |
Gets or sets the authority giving rise to this tax.
For general sales tax this will simply be City, County
or State. Additional taxes may have descriptions such
as "SPECIAL PURPOSE", "EDUCATION", "AUSTIN MTA", etc.
| |
DetailExempt |
Gets or sets whether or not the tax detail is
flagged as exempt from tax.
| |
DetailExemptionID |
Gets or sets the Exemption ID for a tax detail.
Identifies why a tax detail is exempt.
| |
DetailExemptionSource |
Gets the source of a tax exemption.
| |
DetailGeocode |
Gets or sets the tax detail's geocode.
This geocode identifies the tax authority's address.
If the tax detail is for a state tax, then this will be the
two character state geocode.
For a county tax detail, this will be the five character county
geocode.
For a city tax detail, this will be the ten character city geocode.
| |
DetailLocationID |
Gets or sets the Location ID specified by the tax authority.
This value can be helpful when generating reports and
preparing tax returns.
| |
DetailTaxAmount |
Gets or sets the tax amount calculated on this tax detail.
| |
DetailTaxDetailDescription |
Gets or sets the description of the tax detail.
Typically, this will be the jurisdiction name such as
"TEXAS State S" for Texas state sales tax or
"TEXAS State U" for Texas state use tax.
For a special purpose tax detail, the description will
be similar to "WILCOX SPL Co local S".
| |
DetailTaxDetailID |
Gets the Tax Detail ID used to identify this tax rate.
| |
DetailTaxedAmount |
Gets or sets the amount multiplied by the DetailTaxPercent
to compute the DetailTaxAmount.
This decimal is not necessarily equal to the LineTaxableAmount.
For example, if a single tax detail has a maximum or minimum
taxable amount, then it affects the DetailTaxedAmount, but not
the line-item's taxable amount.
| |
DetailTaxPercent |
Gets or sets the tax detail's tax rate as a percentage.
| |
DocBalanceAmount |
Gets the DocBalanceAmount.
This should normally equal zero. This amount is
the DocTotalAmount + DocTradeDiscountAmount - DocExtendedPrice -
DocTaxAmount. The DocBalanceAmount will equal zero after calling
the DocCalculateTax() method. However, if you manually set the
DocTotalAmount, the DocExtendedPrice or the DocTaxAmount, the
DocBalanceAmount will reflect the amount (if any) by which the
values you have set are out of balance.
| |
DocBatchSource |
Gets or sets the Batch Source.
The Batch Source is informational only. It provides a way to specify
where a transaction originated within the module. This value can be
used for sorting and restricting reports but it is not ulitilized by
the TaxEngine in any other way.
| |
DocCanCancelChanges |
Gets the DocCanCancelChanges boolean.
This will return true until changes have been committed
to a SQL Table (such as deleting a line on an existing document).
| |
DocChanged |
Gets the DocChanged boolean.
The document has been modified since it was last saved or since
running DocChangesReset().
| |
DocCustomerID |
Gets or sets the DocCustomerID.
This is a required field. The TaxEngine uses the
customer info as the source for the default shipping method,
ship-to destination and tax schedule. The TaxEngine also uses
the customer ID to determine the customer's taxability.
| |
DocCustomerName |
Gets or sets the customer's name.
| |
DocDate |
Gets or sets the DocDate.
This value will be used for tax reporting purposes,
so typically it should be set to the date that the transaction
is final and/or the tax is officially accrued.
| |
DocDefaultAllowAnyAddress |
Gets or sets the AllowAnyAddress default.
Controls the ability to enter addresses that do
not exist in the address table.
Setting this value will affect the current line
and subsequently added lines.
| |
DocDefaultAllowAnyTaxScheduleID |
Gets or Sets the AllowAnyTaxScheduleID default.
Allows you to control whether or not to allow
invalid/nonexistant tax schedule IDs.
Setting this value will affect the current line
and subsequently added lines.
| |
DocDefaultIncludeTaxInPrice |
Gets or sets the IncludeTaxInPrice default.
With this property set to true, the tax will be calculated
in such a way that the price will include the
tax. The TaxEngine reduces the taxable amount to the point
that the taxable amount plus the tax equals the price entered.
Setting this value will affect the current line
and subsequently added lines.
| |
DocDefaultMarkdownTaxable |
Gets or sets the MarkdownTaxable default.
Allows you to control whether or not to tax
the markdown amount.
Setting this value will affect the current line
and subsequently added lines.
| |
DocDefaultShippingMethod |
Gets or sets the ShippingMethod default.
Setting this value will affect the current line
and subsequently added lines.
| |
DocDefaultShipToAddressID |
Gets or sets the ShipToAddressID default.
Setting this value will affect the current line
and subsequently added lines.
| |
DocDefaultSiteID |
Gets or sets the SiteID default.
Setting this value will affect the current line
and subsequently added lines.
| |
DocDefaultTaxScheduleID |
Gets the document's default Tax Schedule ID.
Setting this value will affect the current line
and subsequently added lines.
| |
DocDefaultTaxScheduleSource |
Gets the DocDefaultTaxScheduleSource.
The returned value indicates the source of the document's default tax
schedule.
| |
DocDefaultUseExemptSchedules |
Gets or sets the UseExemptSchedules default.
Setting this value will affect the current line
and subsequently added lines.
| |
DocExemptAmount |
Gets or sets the DocExemptAmount.
The DocCalculateTax() method sets this value to the total
of the LineExemptAmount's. See DocOtherAmount for information
regarding setting this value manually.
| |
DocExists |
Gets the DocExists boolean.
This property will be true if the current document existed
in SQL Server prior to opening it with the TaxEngine.
| |
DocExtendedPrice |
Gets or sets the DocExtendedPrice.
The DocCalculateTax() method sets this value to the sum
of the LineExtendedPrices. See DocBalanceAmount
for information regarding setting this value manually.
| |
DocMasterType |
Gets or sets the DocMasterType.
This is either negative or positive.
Generally speaking, invoices are positive while returns and credit memos
are negative. The affect of this field is that documents flagged
as positive will be added and therefore increase the totals shown
in the tax reports while documents flagged as negative will be
subtracted, decreasing the tax report totals.
| |
DocModule |
Gets or sets the Transaction Source Module.
Store your identifying module ID in this field.
Please see DocNumber for more information.
| |
DocNumber |
Gets the DocNumber.
Store your identifying document number in this field.
DocNumber, DocType and DocModule must be a unique combination
for each document. You can use this combination to link the
documents in your accounting system to the documents in the
KampData TaxEngine transaction tables.
| |
DocOtherAmount |
Gets the DocOtherAmount.
The DocOtherAmount should normally equal zero. This is the
DocTotalAmount - DocTaxableAmount - DocExemptAmount - DocTaxAmount.
The DocOtherAmount will equal zero immediately after calling the
DocCalculateTax() method unless the document includes a Trade
Discount or Markdown that is being calculated after tax. The
DocOtherAmount will also be non-zero if you force the value of
DocTotalAmount, DocTaxableAmount, DocExemptAmount and/or
DocTaxAmount to amounts that do not total zero.
| |
DocPostingDate |
Gets or sets the DocPostingDate.
The date the transaction is posted in general ledger. Use of this date
will facilitate generating tax reports that can be reconciled to your
general ledger. The value of this property will be set to the current
system date when the DocPost() method is called. Your code should then
set the value to be the same as your general ledger posting date.
| |
DocPostingReference |
Gets or sets the DocPostingReference.
The Posting Reference is informational only. It provides a way to link
transactions to a specific posting process. This value can be
used for sorting and restricting reports but it is not ulitilized by
the TaxEngine in any other way.
| |
DocReadOnly |
Gets or sets the DocReadOnly.
A document will typically be flagged as read only
(taxEngine.DocReadOnly == true) when it is posted.
Read only documents are not modified by the TaxEngine.
You can set this value back to false to enable modifications.
| |
DocRecalculationRequired |
Gets the DocRecalculationRequired boolean.
True if a field value has changed that may affect the tax calculation.
Run DocCalculateTax() to update.
| |
DocRequirements |
Gets the DocRequirements.
This is a text message listing any unfulfilled
requirements that will prevent the TaxEngine
from saving the document.
| |
DocRequirementsMet |
Gets the DocRequirementsMet boolean.
True if all of the fields that the TaxEngine sees as required have
values.
| |
DocReselectionRequired |
Gets or sets the DocReselectionRequired boolean.
Returns true if the tax location, customer or item has changed since the
current tax schedules were selected.
| |
DocSaleOrPurchase |
Gets or sets the DocTransactionType.
Sale will use the sales tax rate and link to the
customer table while Purchase will
use the purchase tax rate and link to the vendor table.
| |
DocSlamLoad |
Gets or sets the DocSlamLoad boolean.
SlamLoad prevents the tax document from recalculating during data entry.
This could improve the performance of the TaxEngine and is primarily
intended for use when importing existing transactions.
While this value is set to true, the tax will not calculate.
Alternately, you can calculate the tax at
any time by calling DocCalculateTax().
| |
DocStatus |
Gets the DocStatus.
Temp = Document has not been saved to SQL Server.
Work = Document has been saved to SQL Server.
History = Document has been saved and posted.
| |
DocSystemDatePosted |
Gets the system date that the document was posted on.
| |
DocTaxableAmount |
Gets or sets the DocTaxableAmount.
The DocCalculateTax() method sets this value to the total
of the LineTaxableAmount's. See DocOtherAmount for information
regarding setting this value manually.
| |
DocTaxAmount |
Gets or sets the DocTaxAmount.
The DocCalculateTax() method sets this value to the total
of the LineTaxAmount's. See DocOtherAmount and DocBalanceAmount
for information regarding setting this value manually.
| |
DocTotalAmount |
Gets or sets the DocTotalAmount.
The DocCalculateTax() method sets this value to the sum
of the LineTotalAmounts. See DocOtherAmount and DocBalanceAmount
for information regarding setting this value manually.
| |
DocTradeDiscountAmount |
Gets or sets a trade discount applied at the document level.
| |
DocTradeDiscountTaxable |
Gets or sets the DocTradeDiscountTaxable boolean.
This allows you to specify whether the DocTradeDiscountAmount
should be applied before or after the tax. If applied before the tax
(Equals true), then the DocTradeDiscountAmount will reduce the taxable
amount and resulting tax. The DocTradeDiscountAmount will then be
allocated proportionately to each tax detail of each line-item.
If applied after the tax(Equals false), then the taxable amount
and resulting tax will not be affected by the DocTradeDiscountAmount.
The DocTradeDiscountAmount will then be included in the DocOtherAmount
and be disregarded during the tax calculation.
| |
DocTransactionNumber |
Gets the DocTransactionNumber.
This is an integer used by the TaxEngine to uniquely identify
a document.
For new documents, the next available number, as stored in the
TE Module Setup table (DzTe0420), is used.
| |
DocType |
Gets or sets the DocType.
Store your identifying document type in this field.
See DocNumber for more information.
| |
DocVoid |
Gets or sets the DocVoid boolean.
Flag the document as voided and then save the document.
The document remains in the tax history,
but can be excluded from tax reports.
| |
LineAllowAnyAddress |
Gets or sets the LineAllowAnyAddress boolean.
When true, the TaxEngine will accept any address as valid.
No warning will be given for invalid addresses.
When set to false, only addresses contained in the address
table will be allowed.
| |
LineAllowAnyTaxScheduleID |
Gets or Sets whether to allow tax schedule IDs that do not currently
exist.
This is primarily for importing transactional history because the
documents' tax schedule IDs may no longer exist.
| |
LineBalanceAmount |
Gets or sets the LineBalanceAmount.
This should normally equal zero. This amount is
the LineTotalAmount + LineTradeDiscountAmount - LineExtendedPrice -
LineTaxAmount. The LineBalanceAmount will equal zero after calling
the DocCalculateTax() method. However, if you manually set the
LineTotalAmount, LineExtendedPrice or LineTaxAmount, then the
LineBalanceAmount will reflect the amount (if any) by which the
values you have set are out of balance.
| |
LineCity |
Gets or sets the tax location city for the current line.
| |
LineCount |
Gets the number of lines in the document.
| |
LineCountryCode |
Gets or sets the tax location country code.
| |
LineCounty |
Gets or sets the tax location county for the current line.
| |
LineExempt |
Gets or sets the current line's exempt status.
| |
LineExemptAmount |
Gets or sets the LineExemptAmount.
The DocCalculateTax() method calculates and sets this value.
See LineOtherAmount for information regarding setting this value manually.
| |
LineExemptionID |
Gets or sets the LineExemptionID.
Exemption ID's can be used to indicate the type of exemption. This
can be useful for reporting purposes. Typically, the exemption source
permits the entry of an exemption ID that will be used for this field.
This value is set automatically based on the LineExemptionSource.
| |
LineExemptionSource |
Gets the LineExemptionSource.
Indicates why the current line is exempt.
| |
LineExists |
Gets the LineExists boolean.
This returns true if the current line of the TaxEngine document
is not null. See LineAdd().
| |
LineExtendedCost |
Gets or sets the LineExtendedCost.
This is set to Math.Round(LineItemUnitCost * LineItemQuantity, 2)
when the LineUnitCost or the LineItemQuantity
values are modified.
| |
LineExtendedPrice |
Gets or sets the LineExtendedPrice.
This value is set to Math.Round((LineItemUnitPrice - LineMarkdownAmount)
* LineItemQuantity, 2) when the LineUnitPrice, LineMarkdownAmount
or the LineItemQuantity values are modified. See LineBalanceAmount for
information regarding setting this value manually.
| |
LineGeocode |
Gets the tax location's geocode.
| |
LineIncludeTaxInPrice |
Gets or sets the LineIncludeTaxInPrice boolean.
Set this to true if item price includes tax.
| |
LineIndex |
Gets or sets the sequencial number of the current line.
| |
LineInitialTaxPercent |
Gets the initial tax rate of the current line's effective tax schedule.
Since some taxes start or stop at certain levels, this rate only
applies to the amount up to that point.
| |
LineItemCategory |
Gets or sets the item category for use with the item
tax location taxability determination.
| |
LineItemDescription |
Gets or sets the LineItemDescription.
| |
LineItemInventoried |
Gets the LineItemInventoried boolean.
This value will be true if the current LineItemNumber exists in
the Item Master table.
| |
LineItemNumber |
Gets or sets the LineItemNumber.
Inventory item number is used for item taxability determination.
See LineExemptionSource for more information.
| |
LineItemQuantity |
Gets or sets the LineItemQuantity.
Some taxes have a maximum and/or minimum tax per each unit of measure.
The TaxEngine needs to know the quantity in order to take this
information into account.
LineItemQuantity, when used along with LineItemUnitPrice, can also be
used for having the TaxEngine calculate the LineExtendedPrice.
| |
LineItemTaxOption |
Gets or sets the LineItemTaxOption.
Base on Customer/Nontaxable/Taxable.
| |
LineItemTaxScheduleID |
Gets or sets the Item's Tax Schedule ID. This is only used for
items whose TaxOption is Taxable.
| |
LineItemUnitCost |
Gets or sets the LineItemUnitCost.
Some taxes are based on cost and have a maximum or minimum
tax per each. The TaxEngine needs to know the unit price
in order to take this into account.
| |
LineItemUnitPrice |
Gets or sets the LineItemUnitPrice.
Some taxes have a maximum or minimum tax per each. The TaxEngine needs
to know the unit price in order to take this into account.
| |
LineJurisdictionID |
Gets or sets the LineJurisdictionID.
This is based on the tax detail geocode(s). If the
line includes city level tax details, the LineJurisdictionID will
be 10 characters long. If there are no city tax details but there are
county tax details, the LineJurisdictionID will be 5 characters long.
If there are only state tax details, the LineJurisdictionID will be
2 characters long. If the tax details include multiple cities, counties
and/or states, the LineJurisdictionID will be set to "MIXED".
| |
LineJurisdictionName |
Gets or sets the name of the jurisdiction.
By default, this will have a value based on the
LineJurisdictionID. For 10 character LineJurisdictionID's,
it will include the state code, the county (enclosed
in square brackets) and the city.
For 5 character LineJurisdictionID's, the city name will
be omitted. For 2 character LineJurisdictionID's,
the county and city will be omitted.
| |
LineMarkdownAmount |
Gets or sets a markdown applied at the line level.
| |
LineMarkdownTaxable |
Gets or sets whether the LineMarkDown should be
applied before or after the tax.
If this value is true, then the discount will be applied
before the tax. The discount will reduce the taxable
amount and the resulting tax.
If this value is false, the discount will be applied after
the tax. The taxable amount and resulting tax will
not be affected by the LineMarkDown, and since it will be
disregarded during tax calculation, the LineMarkDown
will be included in the LineOtherAmount.
| |
LineNumber |
Gets or sets the line number used in your order
entry system to identify this line item.
| |
LineNumberMax |
Gets the highest line sequence number in the document.
| |
LineOtherAmount |
Gets the LineOtherAmount.
This should normally equal zero. This is the
LineTotalAmount - LineTaxableAmount - LineExemptAmount - LineTaxAmount.
The LineOtherAmount will equal zero immediately after calling the
DocCalculateTax() method unless the document includes a Trade
Discount or Markdown that is being calculated after tax. The
LineOtherAmount will also be non-zero if you force the value of
the LineTotalAmount, LineTaxableAmount, LineExemptAmount and/or
LineTaxAmount to amounts that do not total zero.
| |
LineOutsideCityLimits |
Gets or sets the LineInCityLimits boolean.
In cases where there are city and/or city local taxes, setting
this value to true (the default) will include those taxes. Setting
this value to false will exclude those taxes.
| |
LineRecalculationRequired |
Gets the LineRecalculationRequired boolean.
Returns true when a field value has changed that may affect
the tax calculation.
Run DocCalculateTax() to update.
| |
LineRequirements |
Gets the LineRequirements.
Returns a text message listing any unfulfilled
requirements that will prevent the TaxEngine
from saving the current line.
| |
LineRequirementsMet |
Gets the LineRequirementsMet boolean.
Returns true when the TaxEngine has all the values it needs to save and
report the current line tax.
| |
LineReselectionRequired |
Gets or sets the LineReselectionRequired boolean.
Returns true when a field value has changed that may affect the tax schedule
selection. Run DocTaxScheduleDefault() or LineTaxScheduleDefault()
to update.
| |
LineShippingMethod |
Gets or sets the LineShippingMethod.
Used only to identify the shipping type (pickup or delivery).
| |
LineShippingType |
Gets the LineShippingType.
This is based on the LineShippingMethod. If no
shipping method is specified, then shipping type defaults to Delivery.
The LineShippingType and DocTransactionType are used together to determine the default Tax Location. | |
LineShipToAddressID |
Gets or sets the LineShipToAddressID.
The customer's address is used to identify the destination for the order.
This ID is disregarded if the user modifies the destination.
| |
LineSiteID |
Gets or sets the LineSiteID.
Used to identify the origination of the products or services being sold.
For purchases, this identifies to destination of products purchased.
| |
LineState |
Gets or sets the tax location state for the current line.
| |
LineTaxableAmount |
Gets or sets the LineTaxableAmount.
The DocCalculateTax() method calculates and sets this value.
See LineOtherAmount for information regarding setting this
value manually.
| |
LineTaxAmount |
Gets or sets the LineTaxAmount.
The DocCalculateTax() method sets this value to the sum of the
DetailTaxAmounts. See LineBalanceAmount and LineOtherAmount for
information on setting this value manually.
As a general rule, this amount should not be set manually because it must equal the sum of the DetailTaxAmounts in order for the tax reports to be accurate and meaningful. | |
LineTaxInPriceAmount |
Gets the tax amount included in item price.
| |
LineTaxScheduleDescription |
Gets the description of the current line's effective tax schedule.
| |
LineTaxScheduleID |
Gets or sets the effective tax schedule ID for the current line.
See LineTaxScheduleSource for more information.
| |
LineTaxScheduleRefreshRequired |
Gets the LineTaxScheduleRefreshRequired boolean.
Returns true if a change has been made to the item tax schedule or tax
option that may affect which details are taxed.
| |
LineTaxScheduleSource |
Gets the LineTaxScheduleSource.
The returned value indicates the source of the effective tax
schedule. If LineUseIvSiteAddress() = true, then the inventory
site is the default source of the tax schedule. Otherwise, the default
tax schedule comes from the customer address card. You can modify
the tax location address, and have the tax schedule be based on that
modified address.
| |
LineTotalAmount |
Gets or sets the LineTotalAmount.
The DocCalculateTax() method sets this value to LineExtendedPrice +
LineTaxAmount - LineTradeDiscountAmount. See LineBalanceAmount and
LineOtherAmount for information regarding setting this value manually.
| |
LineTradeDiscountable |
Gets or sets whether to specify that certain lines on the
document should not be affected by the trade discount. This will
allocate all the discount to the remaining lines.
| |
LineTradeDiscountAmount |
Gets or sets the LineTradeDiscountAmount.
The DocCalculateTax() method allocates the DocTradeDiscountAmount
to the LineTaxAmount's for each line for which LineTradeDiscountable = true.
The allocation is made based on the ratio of the LineExtendedPrice to the
DocExtendedPrice. See LineOtherAmount and LineBalanceAmount
for information regarding setting this value manually.
| |
LineUseExemptSchedules |
If LineUseExemptSchedules is true, the TaxEngine will
assign a DynamicZip Exempt Schedule ID to exempt customers
and/or items.
If LineUseExemptSchedules is false, the TaxEngine will
assign a normal taxable Schedule ID but set the taxable amount
to zero for exempt customers and/or items.
| |
LineZip |
Gets or sets the tax location ZIP code for the current line.
| |
LogErrors |
Gets or sets whether or not to log errors.
The TaxEngine automatically logs most unhandled exceptions
when working with tax documents, unless this property is set
to false.
| |
Registered |
Gets the registered property.
The Registered property will return true if valid registration
keys have been entered for the TaxEngine.
| |
RegistrationMessage |
This message is intended to assist with the registration process.
It is provides an indication of the registration status related to
the TaxEngine Registration Keys.
| |
RegistrationStatus |
The registration status related to the TaxEngine Registration Keys.
| |
SiteName |
Gets the Microsoft Dynamics® GP registered site name.
| |
SqlServer |
Gets the Microsoft SQL Server® name as used
in the connection string.
| |
TestMode |
Test Mode provides additional feedback on certain error conditions.
Feedback most often comes in the form of a KampData.SqlTools.InternalInfoException
but may include other types of exceptions as well.
Additional information on error conditions will often be
included in the error log when running in Test Mode.
| |
UserID |
Gets the Microsoft Dynamics® GP login name as used in the
connection string.
|