Calculator Tool

From ADempiere
Revision as of 08:31, 23 August 2010 by Rvergara (Talk) (The power of peer review.... :))

Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.

Table of Contents{{#if: Functionality| | Functionality }}{{#if: | | [[{{{3}}}]] }}{{#if: | | [[{{{4}}}]] }}{{#if: | | [[{{{5}}}]] }} | Calculator Tool{{#if: Calendar Tool| | Calendar Tool }} ⇒

The Calculator Tool is a small and simple calculator that provides simple math support to data entry.


Icon: Icon Calculator24.png
Menu: →Calculator }}{{#if: | → }}{{#if: | → }}
Short Cut: (none)
Menu Tree: (none)
Note.gif Note:

The calculator can also be enabled anytime you are entering numerical data by typing an operator or by clicking on the calculator iconIcon Calculator24.pngin the number field. It is often available in the sub-menu by right clicking the mouse.






The calculator tool is a simple calculator that provides support for the following operators: + - * / %. Is also can be used to perform currency conversions by clicking the '$' button. (Bottom, left. It is hard to see in yellow.)

The calculator is activated by the Tools{{#if: Calculator | →Calculator }}{{#if: | → }}{{#if: | → }} command, by clicking on the calculator iconIcon Calculator24.pngin any number field.

The calculator can be operated by the mouse but it is most effective with a number pad and keyboard. The following keys are accepted:

  • 0-9 - standard digits are added to the end of the display
  • '.' and ',' are both treated as decimals and replaced by '.' in the display.
  • / * - + operands are added to the end of the display. If there is already an operand in the last position, it is replaced by the one just typed. If there is an operand between two numbers, the calculation is completed before the new operand is added.
  •  % operand is not working properly. There is a bug.
  • = or <Enter> will complete the calculation. If the calculator was opened from a number field, the equal sign will close the calculator tool and the result will appear in the number field.
  • 'A' or <Delete> will clear the display.
  • 'C' or <Backspace> will remove the last character typed.
  • <Esc> or clicking the red Cancel button will abort the calculation and close the Calculator Tool.
  • '$' or clicking the $ button will display the currency conversion buttons. Selecting and double clicking either currency will convert the currently displayed number.




For Developers

The code the controls the Calculator can be found in

  • client/src