|
|||||||||
| Home >> All >> com >> globalretailtech >> pos >> [ ej overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.globalretailtech.pos.ej
Class EjAltCurrTender

java.lang.Objectcom.globalretailtech.pos.events.PosEvent
com.globalretailtech.pos.events.PosDialogEvent
com.globalretailtech.pos.events.PosNumberDialog
com.globalretailtech.pos.ej.EjLine
com.globalretailtech.pos.ej.EjAltCurrTender
- All Implemented Interfaces:
- java.lang.Comparable
- public class EjAltCurrTender
- extends EjLine
Alternate currency event. This object is typically tied to a key with the database alternate currency ID passed to the engage method. It prompts for the amount of alt currency tendered, prints the alt currency amount, the local currency amount and the amount of change in local currency if the amount is enough to complete the sale. This dialog works a little differently than others, since this class is tied to a key and it looks up the currency when the key is pressed we want to start off the dialog with the current object.
| Field Summary | |
private java.lang.String |
converttext
|
static int |
ENTER_ALT_CURR_AMOUNT
Prompt for amount. |
private static java.lang.String |
eventname
|
static int |
GET_ALT_CURR_AMOUNT
get amount. |
private double |
oonvertamount
|
private java.lang.String |
prompttext
|
private double |
splitamount
|
static int |
TENDER_FINAL
Complete the transaction. |
private com.globalretailtech.data.TransTender |
transtender
|
| Fields inherited from class com.globalretailtech.pos.ej.EjLine |
ACCOUNT, ALT_CURRENCY_TENDER, AMOUNT, BANK, CC_TENDER, CHECK_TENDER, COUPON, DEBIT_TENDER, GIFT_CERT_TENDER, ITEM, ITEM_LINK, NUMBER, numbertype, PROMOTION, SPLIT, TAX, TENDER, TOTAL, TRANS_HEADER |
| Fields inherited from class com.globalretailtech.pos.events.PosNumberDialog |
CLEAR, CURRENCY, DECIMAL, MASK |
| Fields inherited from class com.globalretailtech.pos.events.PosDialogEvent |
|
| Fields inherited from class com.globalretailtech.pos.events.PosEvent |
CUST_HIST, CUST_MAIN, FUNCTION, HOME, ITEM_MODIFIER, NAVIGATE, NEXT, PREV |
| Constructor Summary | |
EjAltCurrTender()
Simple constructor, set the line type. |
|
EjAltCurrTender(com.globalretailtech.pos.context.PosContext c)
Constructor, set the line type and context. |
|
EjAltCurrTender(com.globalretailtech.data.TransTender t)
Constructor, set the line type and trans record, used in reprints. |
|
| Method Summary | |
double |
amount()
Amount for this line. |
private boolean |
amountIsValid()
Validate alternate currency amount. |
double |
change()
Chage for this transaction. |
void |
clear()
Clear key implementation for this class |
java.lang.Object |
clone()
Clone method. |
double |
convertAmount()
|
java.lang.String |
convertText()
Text for receipt. |
java.lang.String |
country()
Currency language country |
java.lang.String |
cust()
Display customer. |
com.globalretailtech.data.DBRecord |
dataRecord()
The data record |
java.lang.String |
desc()
Display description. |
void |
engage(int value)
Get the currency record from the database from value (value is configured in the key database). |
static java.lang.String |
eventName()
Return staic name. |
double |
extAmount()
Extended amount (quantity * amount). |
java.lang.String |
language()
Currency language |
int |
lineNo()
The line nubmer |
java.lang.String |
prompt()
Display prompt. |
java.lang.String |
promptText()
Prompt text for displays. |
int |
quantity()
Quantitiy for this line. |
boolean |
save()
Save the transaction record |
void |
setConvertText(java.lang.String value)
Set convert text. |
void |
setPromptText(java.lang.String value)
Set prompt text. |
void |
setSplitAmount(double value)
Set the currency record. |
void |
setTransTender(com.globalretailtech.data.TransTender value)
Set the transaction record |
double |
splitAmount()
Holds split tender amount |
double |
taxAmount()
Taxable amount. |
java.lang.String |
toString()
Return staic name. |
com.globalretailtech.data.TransTender |
transTender()
The database tender record. |
void |
updateTotals()
Update the alt currncy totals record, note: the currency ID is used to tag the record with a type. |
boolean |
validTransition(java.lang.String event)
Validate transistions state. |
| Methods inherited from class com.globalretailtech.pos.ej.EjLine |
compareTo, lineType, numberType, setLineType, type |
| Methods inherited from class com.globalretailtech.pos.events.PosDialogEvent |
isDialog, nextDialogEvent, popState, pushState, pushUserEvent, state, states |
| Methods inherited from class com.globalretailtech.pos.events.PosEvent |
blocked, checkProfile, context, employeeHasProfile, isValidEvent, setBlocked, setContext |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
ENTER_ALT_CURR_AMOUNT
public static final int ENTER_ALT_CURR_AMOUNT
- Prompt for amount.
- See Also:
- Constant Field Values
GET_ALT_CURR_AMOUNT
public static final int GET_ALT_CURR_AMOUNT
- get amount.
- See Also:
- Constant Field Values
TENDER_FINAL
public static final int TENDER_FINAL
- Complete the transaction.
- See Also:
- Constant Field Values
transtender
private com.globalretailtech.data.TransTender transtender
oonvertamount
private double oonvertamount
splitamount
private double splitamount
prompttext
private java.lang.String prompttext
converttext
private java.lang.String converttext
eventname
private static java.lang.String eventname
| Constructor Detail |
EjAltCurrTender
public EjAltCurrTender()
- Simple constructor, set the line type.
EjAltCurrTender
public EjAltCurrTender(com.globalretailtech.pos.context.PosContext c)
- Constructor, set the line type and context.
EjAltCurrTender
public EjAltCurrTender(com.globalretailtech.data.TransTender t)
- Constructor, set the line type and trans record,
used in reprints.
| Method Detail |
promptText
public java.lang.String promptText()
- Prompt text for displays.
- Overrides:
promptTextin classEjLine
convertText
public java.lang.String convertText()
- Text for receipt.
splitAmount
public double splitAmount()
- Holds split tender amount
transTender
public com.globalretailtech.data.TransTender transTender()
- The database tender record.
language
public java.lang.String language()
- Currency language
country
public java.lang.String country()
- Currency language country
convertAmount
public double convertAmount()
setPromptText
public void setPromptText(java.lang.String value)
- Set prompt text.
setConvertText
public void setConvertText(java.lang.String value)
- Set convert text.
setSplitAmount
public void setSplitAmount(double value)
- Set the currency record.
setTransTender
public void setTransTender(com.globalretailtech.data.TransTender value)
- Set the transaction record
clone
public java.lang.Object clone()
- Clone method.
engage
public void engage(int value)
- Get the currency record from the database from value (value is
configured in the key database). If the currency is found
start the alt currency dialog, which prompts for the amount
tenderd, and completes the transaction if the tendered amount
covers the sale, else split tender.
amountIsValid
private boolean amountIsValid()
- Validate alternate currency amount.
validTransition
public boolean validTransition(java.lang.String event)
- Validate transistions state.
clear
public void clear()
- Clear key implementation for this class
toString
public java.lang.String toString()
- Return staic name.
eventName
public static java.lang.String eventName()
- Return staic name.
quantity
public int quantity()
amount
public double amount()
extAmount
public double extAmount()
taxAmount
public double taxAmount()
change
public double change()
save
public boolean save()
prompt
public java.lang.String prompt()
cust
public java.lang.String cust()
desc
public java.lang.String desc()
lineNo
public int lineNo()
dataRecord
public com.globalretailtech.data.DBRecord dataRecord()
- The data record
- Specified by:
dataRecordin classEjLine
updateTotals
public void updateTotals()
- Update the alt currncy totals record,
note: the currency ID is used to tag
the record with a type. That means if
the ID changes, then the totals will no
longer be valid, unless all records are
replaced first.
- Specified by:
updateTotalsin classEjLine
|
|||||||||
| Home >> All >> com >> globalretailtech >> pos >> [ ej overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC