UnicentaOpos Modification Note

  1. Change the header contents at applications table in the database. Otherwise it won’t change the title of Unicenta oPos name at all.
  2.  disable posApps screen after cash out

 

Administration->Maintenance->Resources->Ticket.Close

Remove

Window rootWindow ;

Window[] allWindows = Window.getWindows();

for (int i=0 ; i < allWindows.length; i++){
    if (allWindows[i].getName().equals("frame0")){
                 rootWindow = (Window)allWindows[i];
             }
}

PosApps posApps = new PosApps();

posApps.init(ticket,dbURL,dbUser,dbPassword,rootWindow,"Email");

Save and done

 

4. configuring the payment tab ;

Administration->Maintenance -> Roles

 

and get the right role and control it …..

<class name=”payment.cash”/>
<class name=”payment.cheque”/>
<class name=”payment.voucher”/>
<class name=”payment.magcard”/>
<class name=”payment.slip”/>
<class name=”payment.free”/>
<class name=”payment.debt”/>

 

comment and uncomment…..

 

 

Logger

 

-Djava.util.logging.config.file=C:\sams\samsoposee\src\main\resources\logger.properties

==========================================================

# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
# Properties file which configures the operation of the JDK
# logging facility.

# The system will look for this config file, first using
# a System property specified at startup:
#
# >java -Djava.util.logging.config.file=myLoggingConfigFilePath
#
# If this property is not specified, then the config file is
# retrieved from its default location at:
#
# JDK_HOME/jre/lib/logging.properties

# Global logging properties.
# ——————————————
# The set of handlers to be loaded upon startup.
# Comma-separated list of class names.
# (? LogManager docs say no comma here, but JDK example has comma.)
handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler

# Default global logging level.
# Loggers and Handlers may override this level
.level=INFO

# Loggers
# ——————————————
# Loggers are usually attached to packages.
# Here, the level for each package is specified.
# The global level is used by default, so levels
# specified here simply act as an override.
#myapp.ui.level=ALL
#myapp.business.level=CONFIG
#myapp.data.level=SEVERE

# Handlers
# —————————————–

# — ConsoleHandler —
# Override of global logging level
java.util.logging.ConsoleHandler.level=ALL
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter

# — FileHandler —
# Override of global logging level
java.util.logging.FileHandler.level=ALL

# Naming style for the output file:
# (The output file is placed in the directory
# defined by the “user.home” System property.)
java.util.logging.FileHandler.pattern=c:\\sams\\sams.log

# Limiting size of output file in bytes:
java.util.logging.FileHandler.limit=50000

# Number of output files to cycle through, by appending an
# integer to the base file name:
java.util.logging.FileHandler.count=1

# Style of output (Simple or XML):
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter

 

=========================

 

customer display setting

 

  • configuration for enabling  : go to the configuration => Peripherals => select the customer Display to Window
  •   Modify the Printer.Start to have customized welcom screen for the customer display

 

 
    <line>
      <text align="center" length="42">
<%=OB.UTIL.encodeXMLComponent(OB.I18N.getLabel('OBPOS_tckheader_line1'));%>
      </text>
    </line>


===>GUI layout change:: Basically it has two main layout components which are JPanelTicket and JCatalog modules.
Mainly you can expand height of JPanelTicket in design mode.
Then, modify the JPanelTicketSales.java file reduce the height of JCatalog component as below;

 m_cat.getComponent().setSize(600, 120);
 // m_cat.getComponent().setPreferredSize(new Dimension(
 // 0,
 // Integer.parseInt(m_jbtnconfig.getProperty("cat-height", "245"))));

Then the screen layout looks like as below;