Same here, current svn.
Steps:
Start DB
Start App
Login
Press New (Table)
-Table Number
-People
Select Items
Press Finish
(at this point the bill is shown with Jasper Viewer - that should happen by create an order?)
Select Ticket
Press Settle
Press Cash Transaction
So at this point the following buttons leads to
the error: Exact Change, Next Amt and Finish
No difference if the amount tendered is changed.
Maybe someone can solve this?
Btw. thanks for the great work.
best regards.
Hi all, i'm software developer, i'm from Costa Rica, i'm not sure why the error occurs, but i found this solution:
In Application.java line 281 search formatNumber and paste this:
public static String formatNumber(Double number) {
String valor;
if(number == null) {
valor = "0.00";
valor = valor.replace(",", ".");
return valor;
}
String value = decimalFormat.format(number);
if(value.equals("-0.00")) {
valor = "0.00";
valor = valor.replace(",", ".");
return valor;
}
value = value.replace(",", ".");
return value;
}
In CashPaymentView.java line 238 paste this:
private void doFinish(java.awt.event.ActionEvent evt) {
try {
String s = tfAmountTendered.getText();
s = s.replace(",", ".");
double tenderedAmount = Double.parseDouble(s);
settleTickets(tenderedAmount, 0, new CashTransaction(), null, null);
} catch (Exception e) {
JOptionPane.showMessageDialog(null, "Error: " + e.getMessage());
}
}
I think is a error parsing the string to double, download the source code, create a netbeans project, do all the instructions of this website http://wiki.floreantpos.com/home/setup-dev-environment
and search the files, i hope this help you, cheers.
Gabriel Villalobos.
Dynamis-soft, Software Developer.
Great bit of free software. I really appreciate how much work went into this. Thanks.
Is there a fix for this error?
I just got the same error following Nibels process
Same here, current svn.
Steps:
Start DB
Start App
Login
Press New (Table)
-Table Number
-People
Select Items
Press Finish
(at this point the bill is shown with Jasper Viewer - that should happen by create an order?)
Select Ticket
Press Settle
Press Cash Transaction
So at this point the following buttons leads to
the error: Exact Change, Next Amt and Finish
I am about to roll this out in a friends restaurant and it would be bad for this to happen in a live environment.
I am running W7 on a 64 bit machine.
Any help?
Log in to reply this topic