Actually the num keybd makes more sense in Paid In and Out
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@674761 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -17,4 +17,7 @@
|
||||
###############################################################################
|
||||
#
|
||||
### Miscellaneous parameters
|
||||
|
||||
# Used with a touch screen to allow showing vituals keyboards (alpha and keypad).
|
||||
# For now this properties is used with both. Maybe at some point we will need both in the same screen.
|
||||
ShowKeyboardInSaveSale=Y
|
||||
@@ -67,9 +67,8 @@ under the License.
|
||||
<Button name="" x="204" y="310" w="100" h="60" style="posButton" content="" alignment="Center"/>
|
||||
<Button name="" x="306" y="310" w="100" h="60" style="posButton" content="" alignment="Center"/>
|
||||
<Button name="" x="408" y="310" w="100" h="60" style="posButton" content="" alignment="Center"/>
|
||||
<!--Button name="" x="510" y="310" w="100" h="60" style="posButton" content="" alignment="Center"/-->
|
||||
<Button name="" x="510" y="310" w="100" h="60" style="posButton" content="" alignment="Center"/>
|
||||
<!--Button name="testMsr" x="510" y="310" w="100" h="60" style="posButton" content="TEST MSR" alignment="Center"/-->
|
||||
<Button name="testNumeric" x="510" y="310" w="100" h="60" style="posButton" content="Num Keypad" alignment="Center"/>
|
||||
|
||||
</Components>
|
||||
</XPage>
|
||||
|
||||
@@ -137,9 +137,10 @@ public class PaidInOut extends XPage {
|
||||
public synchronized void editAmount(){
|
||||
if (wasMouseClicked() && ShowKeyboardInSaveSale) {
|
||||
try {
|
||||
Keyboard keyboard = new Keyboard(m_pos);
|
||||
keyboard.setText(m_amountEdit.getText());
|
||||
m_amountEdit.setText(keyboard.openDlg());
|
||||
NumericKeypad numericKeypad = new NumericKeypad(m_pos);
|
||||
numericKeypad.setMinus(true);
|
||||
numericKeypad.setPercent(false);
|
||||
m_amountEdit.setText(numericKeypad.openDlg());
|
||||
}catch(Exception e){
|
||||
Debug.logError(e, module);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user