F4008EditTaxRateEffectiveDates

F4008 Edit Tax Rate Effective Dates

Minor Business Rule

Object Name: B0000169

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

Functional Description

Purpose

This business function edits to assure that the effectivity date range for a new tax rate does not 

overlap the effectivity date range for another tax rate with the same name.  


Setup Notes and Prerequisites

Pass in the keys values:  tax rate/area, expiration date, and short item number.  Pass a value of '1' 

into the form mode parameter if in Update mode (if calling this business function from an 

application), otherwise leave this parameter blank.


Technical Specification

• Open the F4008 table
• Sequence the tax rate/areas by ascending effective dates
• Loop through all records for the tax rate/area specified
• 

If the updating an existing tax rate/area (cFormMode = 1)
• 
Return without performing edits
• 
Else
• 
If a tax rate/area overlaps the new tax rate/area to be entered
• 
Set an error

Data Structure

D0000169 - F4008 Edit Tax Rate Effective Dates

Parameter NameData ItemData TypeReq/OptI/O/Both
szTaxAreaTXA1charNONENONE

Special Input Expected
This required input parameter receives the tax rate/area for which the date effectivity editing is to 

be performed.

^

jdEffectiveDateEFTJJDEDATENONENONE

Special Input Expected
This input parameter receives the effective date of tax rate/area for which the date effectivity 

editing is to be performed.


^

jdExpirationDateEFDJJDEDATENONENONE

Special Input Expected
This required input parameter receives the expiration date of the tax rate/area for which the date 

effectivity editing is to be performed.


^

cFormModeEV01charNONENONE

Special Input Expected
This input parameter is used by the business function to determine if an existing tax rate/area is 

being edited.


Significant Data Values

 1 - If this business function is being editing an existing

     tax rate/area, pass in this value.

^

mnShortItemNumberITMMATH_NUMERICNONENONE

Special Input Expected
This input parameter receives the short item number of the tax rate/area for which the date 

effectivity editing is to be performed.


^

jdOrigEffectiveDateEFTJJDEDATENONENONE

Special Input Expected
This input parameter is used only if the effective date of an existing tax rate/area is being 

modified.  This parameter receives the original effective date.


^

jdOrigExpirationDateEFDJJDEDATENONENONE

Special Input Expected
This input parameter is used only if the expiration date of an existing tax rate/area is being 

modified.  This parameter receives the original expiration date.

^

Related Functions

None

Related Tables

F4008 Tax Areas