View source | View content page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Show collection (0 pages)
Collections help

Search

Talk:POS - How to make kitchen printing easier

Tried to do all as writed (and verified twice). Two problems occured: 1 the line in ProductsEditor.java: Object[] myprod = new Object["bold"18"bold"];. The compile process (with ant) says:

[javac] /home/dominique/openbravopos/src-pos/com/openbravo/pos/inventory/ProductsEditor.java:345: ']' expected

   [javac]         Object[] myprod = new Object["bold"18"bold"];
   [javac]                                            ^
   [javac] /home/dominique/openbravopos/src-pos/com/openbravo/pos/inventory/ProductsEditor.java:345: not a statement
   [javac]         Object[] myprod = new Object["bold"18"bold"];
   [javac]                                              ^
   [javac] /home/dominique/openbravopos/src-pos/com/openbravo/pos/inventory/ProductsEditor.java:345: ';' expected
   [javac]         Object[] myprod = new Object["bold"18"bold"];
   [javac]                                                    ^
   [javac] 3 errors

BUILD FAILED

2 It seems that the field "ISKITCHEN" can't be created and i get an error when i start openbravopos

Any idea ?


EDIT: All problems solved, works fine. Though, some words:

First of all: Once you've created your new database, close openbravopos at start screen. Then, open a terminal and type:

mysql -u root -p enter your password

mysql> use yourdatabase; mysql> ALTER TABLE PRODUCTS ADD COLUMN ISKITCHEN BOOLEAN DEFAULT b'0'; mysql> exit

restart openbravopos

About these lines in ProductsEditor.java:

public Object createValue() throws BasicException { Object[] myprod = new Object["bold"18"bold"]; ... myprod[17] = Boolean.valueOf(m_jKitchen.isSelected()); ... }

correct them as follow:

public Object createValue() throws BasicException {

       Object[] myprod = new Object[18];
       myprod[0] = m_id;
       ...
       myprod[17] = Boolean.valueOf(m_jKitchen.isSelected());
       
       return myprod;
   }

That it.

Retrieved from "http://wiki.openbravo.com/wiki/Talk:POS_-_How_to_make_kitchen_printing_easier"

This page has been accessed 163 times. This page was last modified on 17 January 2016, at 08:24. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.