public void clear() {
if (UtilValidate.isEmpty(statusbarPromoCode.getText())) { // to handle when on another screen
PosScreen newPos = m_pos.showPage("promopanel");
PromoStatusBar promoStatusBar = newPos.getPromoStatusBar();
XEdit statusbarPromoCode = promoStatusBar.getStatusbarPromoCode();
statusbarPromoCode.setText("");
XEdit statusbarClient = promoStatusBar.getStatusbarClient();
statusbarClient.setText("");
m_pos.showPage("paypanel");
} else {
statusbarPromoCode.setText("");
statusbarClient.setText("");
}
}