Loading...
 

Counter

Counter

Description

Counters are used to maintain all number ranges (registers) used in the system. Counters are required for master data (customers, G/L accounts, parts, etc.) and documents (invoices, orders, purchase orders, etc.) in order to specify sequential numbering. The formatting of the number (e.g. whether with or without leading zeros) is also determined in the counter.

Usually, the name of the meter is the same as the class name of the object to be numbered (e.g. CX_CUSTOMER for the customer number meter).

The register of a counter can be delegated to the register of another counter. This is used, for example, if the number range for outgoing invoices and outgoing credit memos is to be the same. In this case, the counter for A/R credit notes (CX_CREDIT_NOTE) is delegated to the counter for A/R invoices (CX_INVOICE). A conditional table can also be used to distribute a register to several other counters, e.g. if the number range for orders is to be different depending on the order type.

If you want to reset the counters for e.g. A/R invoices at the beginning of a fiscal year, you can create (copy) a separate counter for each fiscal year - controlled by the validity. In this way, for example, the counter "CX_INVOICE" for A/R invoices would then exist several times, each with a validity related to the fiscal year. It should be noted that the counter number should include the year of the fiscal year in order to avoid double numbers.

Functionality

Input window

This window is used for maintaining meters. You can select a meter by entering the desired meter name in the Name field and confirming with RETURN. If you want to open the list window, you can select the menu item "Search".

Several number ranges can also be combined by 'delegation'. In addition, your number ranges can also be displayed with a format specification, for example to define leading zeros or similar. In this way, any format changes that may be necessary in the future can be made centrally and therefore with little effort. In the field 'Control character' you specify the formatting of the respective number range (in the example: six numeric digits) and in the field 'Fixed text' you control how the number is displayed in the input fields (in the example: six digits, numeric with leading zeros).

Menu
Menu itemDescription
Edit -
: Copy counterThe counter displayed in the input window is copied. If several counters with the same name are created (with different validity!), it must be ensured that a possibly created index CX_COUNTER::uniqueID allows duplicates. If the counter to be copied delegates its counter, this information will also be copied and may have to be adjusted
: Test formattingTest counter formatting: this selection can only be made if counter formatting is enabled
: Search number rangeFor a range of numbers entered, you can check whether objects with that number are saved in this machine
: Delegation 
: : Create conditional delegationThe delegation to another counter is changed to a conditional table
: : Conditional table 
: : : Insert counterCounters can be selected, which are transferred to the conditional table. Then the conditions under which each counter is to be valid must be maintained
: : : Remove counterThe selected entries of the conditional table are removed
: : : Edit columnsThe columns of the conditional table can be edited
: : Remove conditional delegationThe table with the conditional counters is removed
CloseClose window
SearchCall up list window

 

Toolbar
SymbolDescription
new.pngCreate new counter
save.pngSave changes
delete.pngClear counter
CX_PRINTER_hardcopy.pngPrint counter
CX_VALIDITY.pngSet validity
CX_TEST_OBJECT.pngTest counter formatting (this button is only visible if counter formatting is activated)

 

Fields
FieldDescription
NameIdentification of the meter
DescriptionAdditional, descriptive information about the meter
Formatting -
DisabledIf this field is selected, the formatting of the input/search fields of the number belonging to the register is generally switched off and the other fields of this input group are hidden. Only standard pre-formatting (usually "000000") then takes place. If the counter is delegated to another counter, the formatting is not affected
: Control characterThe control character indicates which characters are taken over from the input in the Text window; see also FString
Fixed textThe Text window determines how the transferred characters are displayed in the output field; see also FString
Counter -
DisabledIf this field is selected, the counter is generally switched off and the other fields of this input group are hidden
Delegated toSelection of the meter whose counter is to be used. If, for example, (outgoing) invoices and credit notes are to run over a common number range, the counter for credit notes (CX_CREDIT_NOTE) should refer to the counter for invoices (CX_INVOICE).

If the counter is delegated to another counter, the fields "Last number" and "Increment" are hidden.

If the counters in the system are defined across domains, it is also possible to delegate to a counter of another domain. In order to be able to select a counter of another domain, the display of the list can be set accordingly
Last numberLast number assigned by the counter
: Step sizeStep size for incrementing the counter

 

Buttons
buttonDescription
OKChanges to the counter are saved. If no changes are made, the button is locked.
NewThe input window is cleared.
DeleteThe displayed counter is cleared.
CloseThe window is closed without saving changes. If you want to save the changes, you must press the "OK" button.


List window

Used to list the counters.

Menu
Menu itemDescription
Edit -
: Data exchange-
: : ExportExport meter to file
: : ImportImport meter from file
: Display counter of all domainsIf the meters are defined separately by domain, this menu selection can be used to list the meters of all domains. This may be necessary, for example, if the meter is to delegate from one domain to the meter of another domain (cross-domain meters)
: Reset cross-domain displayOnly the counters defined in the domain currently logged on are displayed
CloseClose window

 

Toolbar
SymbolDescription
new.pngCreate new counter
open.pngEdit the meter selected in the list
delete.pngClear the counter selected in the list
CX_PRINTER_hardcopy.pngPrint the counter selected in the list
CX_VALIDITY.pngSet validity for the counter selected in the list
copytoclipboard.pngCopy all objects in the list to the clipboard

 

Buttons
buttonDescription
EditThe current counter is displayed in the input window.
NewAn empty input window opens.
DeleteThe selected counter is cleared.
CloseThe window is closed.


Selection window

This window is used to select a counter.

Buttons
buttonDescription
OKThe selected counter is accepted.
CloseThe selection is cancelled.


Test formatting

In this window you can test the formatting of a counter.

Fields
FieldDescription
Control characters. FString Instruction
Fixed texts. FString Instruction
Input fieldThe characters entered here are displayed formatted according to the specifications made in the "Control characters" and "Fixed text" boxes.
Date of issueAccording to the format specifications of the counter, the input field may appear different from the data that is ultimately read internally from the input field.

 

Buttons
buttonDescription
SaveThe data from the fields "Control character" and "Fixed text" are transferred to the corresponding formatting fields of the counter.


Search number range

In this window you can display the corresponding objects by entering a range of numbers. In this way you can quickly find out how many and which objects are in which number ranges. The search extends over the master list of objects (REP collection) specified in the "Class" field or - if nothing is specified there - the class name is taken from the name of the selected meter. If no "data field" is specified, the field "uniqueID" is taken. In particular, this search also serves to display any gaps in the specified number range.

Fields
FieldDescription
ClassAssignment of the counter to the master list of the class specified here. If no class is specified, the name of the class is taken from the name of the meter.
Data fieldAssignment of the meter to a data field within the master list of the specified class. If no data field is specified, "uniqueID" is taken as data field.
From numberThe search for objects starts from this number (greater or equal).
To numberThe search for objects extends up to this entered number (less or equal).

 

Buttons
buttonDescription
SearchThe specified number range is searched for gaps using the specified data field in the specified class. Any gaps found in the called number range are displayed in the lower list. At the end of the search you can also have all objects found within the called number range listed.


Edit number range manually

A counter object is used - as the name suggests - to automatically count up order or invoice numbers, for example. A counter object can also be used to format number fields. It often happens that you want to manage number ranges manually, because they are assigned and processed externally (e.g. externally assigned inventory numbers). To get an overview of such number ranges, you can manage these "reservations" here.

Fields
FieldDescription
From numberNumber as of which an area is to be reserved. The highest number already reserved can be obtained by pressing the button to the right of this field.
QuantityNumber of numbers to reserve.
To numberFor control purposes, the last number to be reserved is output from the entry in the "From number" field and the "Number" entered.
CommentFree text input to describe the reservation made.

 

Buttons
buttonDescription
BookingA further number range is reserved. If this new reservation overlaps with an existing reservation, the process is terminated with an error message.

Related topics

 


Technical documentation

Overview

 counter.bmp (8118 bytes)

Counter base module

Module name

counter.mod

Classes

CX_COUNTER

Security

In addition to restricting access rights via the class and its data fields, the module can be restricted in its use via some of the received messages.

Received messages
MessageParametersFunctionSecurity
COUNTER_CHANGEDMeter objectCounter was changed 
COUNTER_CREATEDMeter objectCounter was created 
COUNTER_DELETEDMeter objectCounter has been cleared 

 

Sent messages
MessageParametersFunctionReceiver module
EDIT_COUNTERNULL or counter objectCall up input window for counterMeter editing module

 

Counter editing module

Module name

countedt.mod

Classes

CX_COUNTER

Security

In addition to restricting access rights via the class and its data fields, the module can be restricted in its use via some of the received messages.

Received messages
MessageParametersFunctionSecurity
COUNTER_CHANGEDMeter objectCounter was changed 
COUNTER_CREATEDMeter objectCounter was created 
COUNTER_DELETEDMeter objectCounter has been cleared 
EDIT_COUNTERNULL or counter objectCall up input window for counter 
LIST_COUNTERCollection counter objects or NULLCall up list window for counters 
LOAD_COUNTER Import meter 

 

Sent messages
MessageParametersFunctionReceiver module
COUNTER_CHANGEDMeter objectCounter was changed 
COUNTER_CREATEDMeter objectCounter was created 
EDIT_COUNTERNULL or counter objectCall up input window for counterMeter editing module
LIST_COUNTER Call up list window for countersMeter editing module
SHOW_PREVIEWWidgetPrint PreviewPrint Preview

 

Counter selection module

Module name

countsel.mod

Classes

CX_COUNTER

Security

In addition to restricting access rights via the class and its data fields, the module can be restricted in its use via some of the received messages.

Received messages
MessageParametersFunctionSecurity
COUNTER_CHANGEDMeter objectCounter was changed 
COUNTER_CREATEDMeter objectCounter was created 
COUNTER_DELETEDMeter objectCounter has been cleared 
SELECT_COUNTERCollection counter objects or NULL, recipient of the responseCall up selection window for counters 

 

Sent messages
MessageParametersFunctionReceiver module
COUNTER_SELECTEDCounter object, receiverCounter was selected
EDIT_COUNTERNULL or counter objectCall up input window for counterMeter editing module

Operational business