opure / openbravoposru

Automatically exported from code.google.com/p/openbravoposru
0 stars 0 forks source link

Printing Product Labels 58x30 doesn't work with other version as openbravoposru #245

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

i finding the power function in your repo to print productlabels in 58x30.
This wiki http://code.google.com/p/openbravoposru/wiki/GodexEZPLUbuntu shows me 
how to install the option for printing labels.

The tutorial working best for openbravoporu, but i using the version of 
openbravo from the sourceforge in german.

I get this messages by the sourceforge version:

net.sf.jasperreports.engine.JRException: 
Errors were encountered when compiling report expressions class file:
1. The method getTaxRate(String) in the type TaxesLogic is not applicable for 
the arguments (String, Date)
new Double(((java.lang.Double)field_PRICESELL.getValue()).doubleValue() * (1.0 
+ 
((com.openbravo.pos.sales.TaxesLogic)parameter_TAXESLOGIC.getValue()).getTaxRate
(((java.lang.String)field_TAXCAT.getValue()), new Date())))); //$JR_EXPR_ID=9$
                                                                                                                                                       <-------->
2. The method getTaxRate(String) in the type TaxesLogic is not applicable for 
the arguments (String, Date)
new Double(((java.lang.Double)field_PRICESELL.getOldValue()).doubleValue() * 
(1.0 + 
((com.openbravo.pos.sales.TaxesLogic)parameter_TAXESLOGIC.getValue()).getTaxRate
(((java.lang.String)field_TAXCAT.getOldValue()), new Date())))); 
//$JR_EXPR_ID=9$
                                                                                                                                                          <-------->
3. The method getTaxRate(String) in the type TaxesLogic is not applicable for 
the arguments (String, Date)
new Double(((java.lang.Double)field_PRICESELL.getValue()).doubleValue() * (1.0 
+ 
((com.openbravo.pos.sales.TaxesLogic)parameter_TAXESLOGIC.getValue()).getTaxRate
(((java.lang.String)field_TAXCAT.getValue()), new Date())))); //$JR_EXPR_ID=9$
                                                                                                                                                       <-------->
3 errors

I using unicentaopos-3.01 and openbravo 2.30.2 and the problem is the same.

How could i fix it?
Which chances are need for the Product Label printing?

Operating System is Ubuntu 12.04 and Ubuntu 13.04

Thank you very much, for your replay.

best wishes

Chris

Original issue reported on code.google.com by chris86t...@googlemail.com on 10 Aug 2013 at 9:03

GoogleCodeExporter commented 9 years ago
перестали поддерживать ???

Original comment by Skyrat...@gmail.com on 15 Sep 2013 at 4:18

GoogleCodeExporter commented 9 years ago
Ответил публично 
https://groups.google.com/d/msg/openbravoposru/K5SHalP4k4I/yVugrKG5lDgJ

Original comment by svinin...@gmail.com on 16 Sep 2013 at 9:12

GoogleCodeExporter commented 9 years ago
Ну, для начала с праздником Кирмеса, Вас, Chris.
А теперь ближе к делу. Чтобы исправить эти 
ошибки нужно всего лишь прочитать, из-за 
чего они возникают.

net.sf.jasperreports.engine.JRException: 
Errors were encountered when compiling report expressions class file:

Тут все понятно, при компиляции отчета 
джаспер не смог обработать некоторое 
выражение.

1. The method getTaxRate(String) in the type TaxesLogic is not applicable for 
the arguments (String, Date)

Метод getTaxRate(String) класса TaxesLogic не содержит 
параметры (String, Date) и так все три раза)))

Посмотрите, какие же все-таки параметры 
передаются в getTaxRate (я полагаю, что только 
String)). И поправьте файл отчета, который Вы 
так бездумно скопировали.

P.S. How could you fix it. Lite version.

In file

    /com/openbravo/reports/productlabels58x30.jrxml

all strings containing

    getTaxRate($F{TAXCAT}, new Date()

lead to (delete some text - ", new Date()")

    getTaxRate($F{TAXCAT}

save, start ...enjoy!

Original comment by masterum...@gmail.com on 21 Oct 2013 at 12:43