Error of java type in createProduct simple method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Error of java type in createProduct simple method

Cimballi
Hi,

I think the is an error of java type in the simple method
"createProduct" in the file
"applications/product/script/org/ofbiz/product/product/ProductServices.xml".
The line is : <set field="newEntity.billOfMaterialLevel" value="0"
type="Integer"/>
But the field "billOfMaterialLevel" is specified as numeric = Long in
the "entitymodel.xml" file.

Cimballi
Reply | Threaded
Open this post in threaded view
|

Re: Error of java type in createProduct simple method

Adrian Cumiskey-2
Hi Cimballi,

Yes this is a bug in the OFBiz 09.04 release.  It has since been fixed in
trunk in revision r771477.  Its probably easiest to change the type
"Integer" to "Long" in ProductServices.xml until the next release.

Adrian Cumiskey.

2009/12/19 Cimballi <[hidden email]>

> Hi,
>
> I think the is an error of java type in the simple method
> "createProduct" in the file
>
> "applications/product/script/org/ofbiz/product/product/ProductServices.xml".
> The line is : <set field="newEntity.billOfMaterialLevel" value="0"
> type="Integer"/>
> But the field "billOfMaterialLevel" is specified as numeric = Long in
> the "entitymodel.xml" file.
>
> Cimballi
>
Reply | Threaded
Open this post in threaded view
|

Re: Error of java type in createProduct simple method

Jacques Le Roux
Administrator
Thanks Adrian,

Fixed at r892439

Jacques

From: "Adrian Cumiskey" <[hidden email]>

> Hi Cimballi,
>
> Yes this is a bug in the OFBiz 09.04 release.  It has since been fixed in
> trunk in revision r771477.  Its probably easiest to change the type
> "Integer" to "Long" in ProductServices.xml until the next release.
>
> Adrian Cumiskey.
>
> 2009/12/19 Cimballi <[hidden email]>
>
>> Hi,
>>
>> I think the is an error of java type in the simple method
>> "createProduct" in the file
>>
>> "applications/product/script/org/ofbiz/product/product/ProductServices.xml".
>> The line is : <set field="newEntity.billOfMaterialLevel" value="0"
>> type="Integer"/>
>> But the field "billOfMaterialLevel" is specified as numeric = Long in
>> the "entitymodel.xml" file.
>>
>> Cimballi
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Error of java type in createProduct simple method

Cimballi-2
Adrian and Jacques,

There is the same problem for the following fields :
WorkEffort reservPersons, reserv2ndPPPerc, reservNthPPPerc

They are defined as "floating-point" = Double, but in the
ShoppingCartItem class BigDecimal is used.

Cimballi


On Sat, Dec 19, 2009 at 1:35 AM, Jacques Le Roux
<[hidden email]> wrote:

> Thanks Adrian,
>
> Fixed at r892439
>
> Jacques
>
> From: "Adrian Cumiskey" <[hidden email]>
>>
>> Hi Cimballi,
>>
>> Yes this is a bug in the OFBiz 09.04 release.  It has since been fixed in
>> trunk in revision r771477.  Its probably easiest to change the type
>> "Integer" to "Long" in ProductServices.xml until the next release.
>>
>> Adrian Cumiskey.
>>
>> 2009/12/19 Cimballi <[hidden email]>
>>
>>> Hi,
>>>
>>> I think the is an error of java type in the simple method
>>> "createProduct" in the file
>>>
>>>
>>> "applications/product/script/org/ofbiz/product/product/ProductServices.xml".
>>> The line is : <set field="newEntity.billOfMaterialLevel" value="0"
>>> type="Integer"/>
>>> But the field "billOfMaterialLevel" is specified as numeric = Long in
>>> the "entitymodel.xml" file.
>>>
>>> Cimballi
>>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Error of java type in createProduct simple method

Cimballi-2
Idem for
WorkEffort.quantityToProduce
TechDataCalendarExcDay.usedCapacity
TechDataCalendarExcDay.exceptionCapacity


On Sat, Dec 19, 2009 at 2:47 PM, Cimballi <[hidden email]> wrote:

> Adrian and Jacques,
>
> There is the same problem for the following fields :
> WorkEffort reservPersons, reserv2ndPPPerc, reservNthPPPerc
>
> They are defined as "floating-point" = Double, but in the
> ShoppingCartItem class BigDecimal is used.
>
> Cimballi
>
>
> On Sat, Dec 19, 2009 at 1:35 AM, Jacques Le Roux
> <[hidden email]> wrote:
>> Thanks Adrian,
>>
>> Fixed at r892439
>>
>> Jacques
>>
>> From: "Adrian Cumiskey" <[hidden email]>
>>>
>>> Hi Cimballi,
>>>
>>> Yes this is a bug in the OFBiz 09.04 release.  It has since been fixed in
>>> trunk in revision r771477.  Its probably easiest to change the type
>>> "Integer" to "Long" in ProductServices.xml until the next release.
>>>
>>> Adrian Cumiskey.
>>>
>>> 2009/12/19 Cimballi <[hidden email]>
>>>
>>>> Hi,
>>>>
>>>> I think the is an error of java type in the simple method
>>>> "createProduct" in the file
>>>>
>>>>
>>>> "applications/product/script/org/ofbiz/product/product/ProductServices.xml".
>>>> The line is : <set field="newEntity.billOfMaterialLevel" value="0"
>>>> type="Integer"/>
>>>> But the field "billOfMaterialLevel" is specified as numeric = Long in
>>>> the "entitymodel.xml" file.
>>>>
>>>> Cimballi
>>>>
>>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Error of java type in createProduct simple method

Jacques Le Roux
Administrator
Fixed at r998557 in trunk

Jacques

From: "Cimballi" <[hidden email]>

> Idem for
> WorkEffort.quantityToProduce
> TechDataCalendarExcDay.usedCapacity
> TechDataCalendarExcDay.exceptionCapacity
>
>
> On Sat, Dec 19, 2009 at 2:47 PM, Cimballi <[hidden email]> wrote:
>> Adrian and Jacques,
>>
>> There is the same problem for the following fields :
>> WorkEffort reservPersons, reserv2ndPPPerc, reservNthPPPerc
>>
>> They are defined as "floating-point" = Double, but in the
>> ShoppingCartItem class BigDecimal is used.
>>
>> Cimballi
>>
>>
>> On Sat, Dec 19, 2009 at 1:35 AM, Jacques Le Roux
>> <[hidden email]> wrote:
>>> Thanks Adrian,
>>>
>>> Fixed at r892439
>>>
>>> Jacques
>>>
>>> From: "Adrian Cumiskey" <[hidden email]>
>>>>
>>>> Hi Cimballi,
>>>>
>>>> Yes this is a bug in the OFBiz 09.04 release. It has since been fixed in
>>>> trunk in revision r771477. Its probably easiest to change the type
>>>> "Integer" to "Long" in ProductServices.xml until the next release.
>>>>
>>>> Adrian Cumiskey.
>>>>
>>>> 2009/12/19 Cimballi <[hidden email]>
>>>>
>>>>> Hi,
>>>>>
>>>>> I think the is an error of java type in the simple method
>>>>> "createProduct" in the file
>>>>>
>>>>>
>>>>> "applications/product/script/org/ofbiz/product/product/ProductServices.xml".
>>>>> The line is : <set field="newEntity.billOfMaterialLevel" value="0"
>>>>> type="Integer"/>
>>>>> But the field "billOfMaterialLevel" is specified as numeric = Long in
>>>>> the "entitymodel.xml" file.
>>>>>
>>>>> Cimballi
>>>>>
>>>>
>>>
>>>
>>
>