Re: discussion: video rentals

2011-09-22 Thread Paul Foxworthy
Hi Hans,

Of course you know the business problem better than anyone else does, but
even so I tend to agree with Adrian.

It seems to me "DVD midlevel price" is a pricing rule, not a product. I may
well rent two instances of "DVD midlevel price" if they were different DVD
titles (e.g. Die Hard 1 and 2). It would be most unlikely that I'd want to
rent two instances of the same title.

There are many business opportunities when you know what title a customer
has rented. For example: "we can see that you have recently rented The Lord
Of The Rings 1 and 2, here's a special offer for number 3", 'We can see
you've rented several titles starring Bruce Willis, would you like to rent
these others?". 

You might want to vary the pricing for some titles compared to others: have
a Bruce Willis festival, or "the Star Wars Blu-Ray set is now out, time to
increase/decrease the price of our DVDs". So while for the moment there are
thousands of titles at the same price, there's no guarantee that will
continue forever.

You might want to track how popular a title is: "Die Hard 1 is very popular
and never in stock, we should acquire a few more copies".

There's a problem getting the products defined in Ofbiz in the first place,
but one of the online DVD catalogues might  help, and you have to put the
fixed assets into Ofbiz in any case.

Cheers

Paul Foxworthy


hans_bakker wrote:
> 
> On Fri, 2011-09-23 at 06:56 +0100, Adrian Crum wrote:
>> If they are the same product, then they are in the same product
>> categories.
>> 
> 
> so that is limitation of the current datamodel?..looks like i have
> to create for every asset a product and a single inventory item of which
> many have the same price and other data, only the picture is different
> because i cannot store that on the fixed asset.
> 
> Then i also better use the 'instanceOfProduct field on the fixed asset
> and do not need the fixedassetProduct entity and the recently added
> fixedAssetId field on the inventoryitem..
> 
>> I have three copies of the Die Hard DVD. Why would I want to put each 
>> one in a different product category? What you are suggesting doesn't 
>> make sense.
>> It might help if you gave some specific examples of what you are trying 
>> to do.
> 
> I have a single product : "DVD midlevel price" relating to 10,000 dvd's
> with different fixed asset titles in different genre's but the same
> rental price
> 
>> 
>> -Adrian
>> 
>> On 9/23/2011 6:51 AM, Hans Bakker wrote:
>> > Can you help me think in the right direction?
>> >
>> > how can i show some fixedassets of the same product in one category and
>> > some of the assets in another category?
>> >
>> > Thank you in advance for your help.
>> >
>> > Regards,m=
>> > Hans
>> >
>> > On Fri, 2011-09-23 at 06:47 +0100, Adrian Crum wrote:
>> >> Hans,
>> >>
>> >> The data model supports what you are trying to do if YOU think about
>> it.
>> >> There is no need to connect a fixed asset to a product category.
>> >>
>> >> -Adrian
>> >>
>> >> On 9/23/2011 6:44 AM, Hans Bakker wrote:
>> >>> sure can do that, but i want a specific instance showing in one
>> category
>> >>> and another instance showing in a different category..
>> >>>
>> >>> Adrian, before you answer can you please think about it a bit?
>> >>>
>> >>> Regards,
>> >>> Hans
>> >>>
>> >>> On Fri, 2011-09-23 at 06:42 +0100, Adrian Crum wrote:
>>  Use FixedAssetProduct.
>> 
>>  -Adrian
>> 
>>  On 9/23/2011 6:37 AM, Hans Bakker wrote:
>> > but if you want a particular instance of a product?
>> >
>> > I have products (as i described):
>> >> In this product type the product is a group of video rentals of
>> the
>> >> same rental price referring to many video assets.
>> > Hans
>> >
>> > On Fri, 2011-09-23 at 06:32 +0100, Adrian Crum wrote:
>> >> A fixed asset is an instance of a product, much like an inventory
>> item
>> >> is an instance of a product. So, no - you do not want to connect a
>> fixed
>> >> asset to a product category.
>> >>
>> >> Product: Die Hard DVD
>> >> Product Categories: DVD, Action, Drama, Bruce Willis
>> >> Fixed Assets: 10010, 10011, 1012
>> >>
>> >> -Adrian
>> >>
>> >> On 9/23/2011 6:20 AM, Hans Bakker wrote:
>> >>> Now we can have rental products where the asset can be rented
>> >>>
>> >>> In this product type the product is a group of video rentals of
>> the same
>> >>> rental price referring to many video assets.
>> >>>
>> >>> However now we also want to categorize these assets in order to
>> display
>> >>> them on the e-commerce website.
>> >>>
>> >>> Is adding a fixedAssetid field to the ProductCategoryMember
>> entity a
>> >>> solution?
>> >>>
>> >>>
> 
> -- 
> Ofbiz on twitter: http://twitter.com/apache_ofbiz
> Alternative ofbiz website: http://www.ofbiz.info
> http://www.antwebsystems.com : Quality services for competitive rates.
> 

--
View this message in context: 
http:

Re: discussion: video rentals

2011-09-22 Thread Adrian Crum
The problem is, you are trying to mix the pricing model with the 
product/fixed asset model. That will not work.


Here is how I would set things up based on my understanding of video 
rentals:


[Products / Fixed Assets]

Product: Die Hard VHS Cassette
Product Categories: VHS, Action, Drama, Bruce Willis
Fixed Assets: 10009

Product: Die Hard DVD
Product Categories: DVD, Action, Drama, Bruce Willis
Fixed Assets: 10010, 10011, 1012

Product: Die Hard IIV DVD
Product Categories: New Releases, DVD, Action, Drama, Bruce Willis
Fixed Assets: 20020, 20021, 20022

[Pricing]

Product Category: VHS
Price: $1.00 per day

Product Category: DVD
Price: $1.50 per day

Product Category: New Releases
Price: $0.50 per day

-Adrian


On 9/23/2011 7:16 AM, Hans Bakker wrote:

On Fri, 2011-09-23 at 06:56 +0100, Adrian Crum wrote:

If they are the same product, then they are in the same product categories.


so that is limitation of the current datamodel?..looks like i have
to create for every asset a product and a single inventory item of which
many have the same price and other data, only the picture is different
because i cannot store that on the fixed asset.

Then i also better use the 'instanceOfProduct field on the fixed asset
and do not need the fixedassetProduct entity and the recently added
fixedAssetId field on the inventoryitem..


I have three copies of the Die Hard DVD. Why would I want to put each
one in a different product category? What you are suggesting doesn't
make sense.
It might help if you gave some specific examples of what you are trying
to do.

I have a single product : "DVD midlevel price" relating to 10,000 dvd's
with different fixed asset titles in different genre's but the same
rental price


-Adrian

On 9/23/2011 6:51 AM, Hans Bakker wrote:

Can you help me think in the right direction?

how can i show some fixedassets of the same product in one category and
some of the assets in another category?

Thank you in advance for your help.

Regards,m=
Hans

On Fri, 2011-09-23 at 06:47 +0100, Adrian Crum wrote:

Hans,

The data model supports what you are trying to do if YOU think about it.
There is no need to connect a fixed asset to a product category.

-Adrian

On 9/23/2011 6:44 AM, Hans Bakker wrote:

sure can do that, but i want a specific instance showing in one category
and another instance showing in a different category..

Adrian, before you answer can you please think about it a bit?

Regards,
Hans

On Fri, 2011-09-23 at 06:42 +0100, Adrian Crum wrote:

Use FixedAssetProduct.

-Adrian

On 9/23/2011 6:37 AM, Hans Bakker wrote:

but if you want a particular instance of a product?

I have products (as i described):

In this product type the product is a group of video rentals of the
same rental price referring to many video assets.

Hans

On Fri, 2011-09-23 at 06:32 +0100, Adrian Crum wrote:

A fixed asset is an instance of a product, much like an inventory item
is an instance of a product. So, no - you do not want to connect a fixed
asset to a product category.

Product: Die Hard DVD
Product Categories: DVD, Action, Drama, Bruce Willis
Fixed Assets: 10010, 10011, 1012

-Adrian

On 9/23/2011 6:20 AM, Hans Bakker wrote:

Now we can have rental products where the asset can be rented

In this product type the product is a group of video rentals of the same
rental price referring to many video assets.

However now we also want to categorize these assets in order to display
them on the e-commerce website.

Is adding a fixedAssetid field to the ProductCategoryMember entity a
solution?




Re: discussion: video rentals

2011-09-22 Thread Hans Bakker
On Fri, 2011-09-23 at 06:56 +0100, Adrian Crum wrote:
> If they are the same product, then they are in the same product categories.
> 

so that is limitation of the current datamodel?..looks like i have
to create for every asset a product and a single inventory item of which
many have the same price and other data, only the picture is different
because i cannot store that on the fixed asset.

Then i also better use the 'instanceOfProduct field on the fixed asset
and do not need the fixedassetProduct entity and the recently added
fixedAssetId field on the inventoryitem..

> I have three copies of the Die Hard DVD. Why would I want to put each 
> one in a different product category? What you are suggesting doesn't 
> make sense.
> It might help if you gave some specific examples of what you are trying 
> to do.

I have a single product : "DVD midlevel price" relating to 10,000 dvd's
with different fixed asset titles in different genre's but the same
rental price

> 
> -Adrian
> 
> On 9/23/2011 6:51 AM, Hans Bakker wrote:
> > Can you help me think in the right direction?
> >
> > how can i show some fixedassets of the same product in one category and
> > some of the assets in another category?
> >
> > Thank you in advance for your help.
> >
> > Regards,m=
> > Hans
> >
> > On Fri, 2011-09-23 at 06:47 +0100, Adrian Crum wrote:
> >> Hans,
> >>
> >> The data model supports what you are trying to do if YOU think about it.
> >> There is no need to connect a fixed asset to a product category.
> >>
> >> -Adrian
> >>
> >> On 9/23/2011 6:44 AM, Hans Bakker wrote:
> >>> sure can do that, but i want a specific instance showing in one category
> >>> and another instance showing in a different category..
> >>>
> >>> Adrian, before you answer can you please think about it a bit?
> >>>
> >>> Regards,
> >>> Hans
> >>>
> >>> On Fri, 2011-09-23 at 06:42 +0100, Adrian Crum wrote:
>  Use FixedAssetProduct.
> 
>  -Adrian
> 
>  On 9/23/2011 6:37 AM, Hans Bakker wrote:
> > but if you want a particular instance of a product?
> >
> > I have products (as i described):
> >> In this product type the product is a group of video rentals of the
> >> same rental price referring to many video assets.
> > Hans
> >
> > On Fri, 2011-09-23 at 06:32 +0100, Adrian Crum wrote:
> >> A fixed asset is an instance of a product, much like an inventory item
> >> is an instance of a product. So, no - you do not want to connect a 
> >> fixed
> >> asset to a product category.
> >>
> >> Product: Die Hard DVD
> >> Product Categories: DVD, Action, Drama, Bruce Willis
> >> Fixed Assets: 10010, 10011, 1012
> >>
> >> -Adrian
> >>
> >> On 9/23/2011 6:20 AM, Hans Bakker wrote:
> >>> Now we can have rental products where the asset can be rented
> >>>
> >>> In this product type the product is a group of video rentals of the 
> >>> same
> >>> rental price referring to many video assets.
> >>>
> >>> However now we also want to categorize these assets in order to 
> >>> display
> >>> them on the e-commerce website.
> >>>
> >>> Is adding a fixedAssetid field to the ProductCategoryMember entity a
> >>> solution?
> >>>
> >>>

-- 
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Alternative ofbiz website: http://www.ofbiz.info
http://www.antwebsystems.com : Quality services for competitive rates.



Re: discussion: video rentals

2011-09-22 Thread Adrian Crum

If they are the same product, then they are in the same product categories.

I have three copies of the Die Hard DVD. Why would I want to put each 
one in a different product category? What you are suggesting doesn't 
make sense.


It might help if you gave some specific examples of what you are trying 
to do.


-Adrian

On 9/23/2011 6:51 AM, Hans Bakker wrote:

Can you help me think in the right direction?

how can i show some fixedassets of the same product in one category and
some of the assets in another category?

Thank you in advance for your help.

Regards,m=
Hans

On Fri, 2011-09-23 at 06:47 +0100, Adrian Crum wrote:

Hans,

The data model supports what you are trying to do if YOU think about it.
There is no need to connect a fixed asset to a product category.

-Adrian

On 9/23/2011 6:44 AM, Hans Bakker wrote:

sure can do that, but i want a specific instance showing in one category
and another instance showing in a different category..

Adrian, before you answer can you please think about it a bit?

Regards,
Hans

On Fri, 2011-09-23 at 06:42 +0100, Adrian Crum wrote:

Use FixedAssetProduct.

-Adrian

On 9/23/2011 6:37 AM, Hans Bakker wrote:

but if you want a particular instance of a product?

I have products (as i described):

In this product type the product is a group of video rentals of the
same rental price referring to many video assets.

Hans

On Fri, 2011-09-23 at 06:32 +0100, Adrian Crum wrote:

A fixed asset is an instance of a product, much like an inventory item
is an instance of a product. So, no - you do not want to connect a fixed
asset to a product category.

Product: Die Hard DVD
Product Categories: DVD, Action, Drama, Bruce Willis
Fixed Assets: 10010, 10011, 1012

-Adrian

On 9/23/2011 6:20 AM, Hans Bakker wrote:

Now we can have rental products where the asset can be rented

In this product type the product is a group of video rentals of the same
rental price referring to many video assets.

However now we also want to categorize these assets in order to display
them on the e-commerce website.

Is adding a fixedAssetid field to the ProductCategoryMember entity a
solution?




Re: discussion: video rentals

2011-09-22 Thread Hans Bakker
Can you help me think in the right direction?

how can i show some fixedassets of the same product in one category and
some of the assets in another category?

Thank you in advance for your help.

Regards,m=
Hans

On Fri, 2011-09-23 at 06:47 +0100, Adrian Crum wrote:
> Hans,
> 
> The data model supports what you are trying to do if YOU think about it. 
> There is no need to connect a fixed asset to a product category.
> 
> -Adrian
> 
> On 9/23/2011 6:44 AM, Hans Bakker wrote:
> > sure can do that, but i want a specific instance showing in one category
> > and another instance showing in a different category..
> >
> > Adrian, before you answer can you please think about it a bit?
> >
> > Regards,
> > Hans
> >
> > On Fri, 2011-09-23 at 06:42 +0100, Adrian Crum wrote:
> >> Use FixedAssetProduct.
> >>
> >> -Adrian
> >>
> >> On 9/23/2011 6:37 AM, Hans Bakker wrote:
> >>> but if you want a particular instance of a product?
> >>>
> >>> I have products (as i described):
>  In this product type the product is a group of video rentals of the
>  same rental price referring to many video assets.
> >>> Hans
> >>>
> >>> On Fri, 2011-09-23 at 06:32 +0100, Adrian Crum wrote:
>  A fixed asset is an instance of a product, much like an inventory item
>  is an instance of a product. So, no - you do not want to connect a fixed
>  asset to a product category.
> 
>  Product: Die Hard DVD
>  Product Categories: DVD, Action, Drama, Bruce Willis
>  Fixed Assets: 10010, 10011, 1012
> 
>  -Adrian
> 
>  On 9/23/2011 6:20 AM, Hans Bakker wrote:
> > Now we can have rental products where the asset can be rented
> >
> > In this product type the product is a group of video rentals of the same
> > rental price referring to many video assets.
> >
> > However now we also want to categorize these assets in order to display
> > them on the e-commerce website.
> >
> > Is adding a fixedAssetid field to the ProductCategoryMember entity a
> > solution?
> >
> >

-- 
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Alternative ofbiz website: http://www.ofbiz.info
http://www.antwebsystems.com : Quality services for competitive rates.



Re: discussion: video rentals

2011-09-22 Thread Adrian Crum

Hans,

The data model supports what you are trying to do if YOU think about it. 
There is no need to connect a fixed asset to a product category.


-Adrian

On 9/23/2011 6:44 AM, Hans Bakker wrote:

sure can do that, but i want a specific instance showing in one category
and another instance showing in a different category..

Adrian, before you answer can you please think about it a bit?

Regards,
Hans

On Fri, 2011-09-23 at 06:42 +0100, Adrian Crum wrote:

Use FixedAssetProduct.

-Adrian

On 9/23/2011 6:37 AM, Hans Bakker wrote:

but if you want a particular instance of a product?

I have products (as i described):

In this product type the product is a group of video rentals of the
same rental price referring to many video assets.

Hans

On Fri, 2011-09-23 at 06:32 +0100, Adrian Crum wrote:

A fixed asset is an instance of a product, much like an inventory item
is an instance of a product. So, no - you do not want to connect a fixed
asset to a product category.

Product: Die Hard DVD
Product Categories: DVD, Action, Drama, Bruce Willis
Fixed Assets: 10010, 10011, 1012

-Adrian

On 9/23/2011 6:20 AM, Hans Bakker wrote:

Now we can have rental products where the asset can be rented

In this product type the product is a group of video rentals of the same
rental price referring to many video assets.

However now we also want to categorize these assets in order to display
them on the e-commerce website.

Is adding a fixedAssetid field to the ProductCategoryMember entity a
solution?




Re: discussion: video rentals

2011-09-22 Thread Hans Bakker
sure can do that, but i want a specific instance showing in one category
and another instance showing in a different category..

Adrian, before you answer can you please think about it a bit?

Regards,
Hans

On Fri, 2011-09-23 at 06:42 +0100, Adrian Crum wrote:
> Use FixedAssetProduct.
> 
> -Adrian
> 
> On 9/23/2011 6:37 AM, Hans Bakker wrote:
> > but if you want a particular instance of a product?
> >
> > I have products (as i described):
> >> In this product type the product is a group of video rentals of the
> >> same rental price referring to many video assets.
> > Hans
> >
> > On Fri, 2011-09-23 at 06:32 +0100, Adrian Crum wrote:
> >> A fixed asset is an instance of a product, much like an inventory item
> >> is an instance of a product. So, no - you do not want to connect a fixed
> >> asset to a product category.
> >>
> >> Product: Die Hard DVD
> >> Product Categories: DVD, Action, Drama, Bruce Willis
> >> Fixed Assets: 10010, 10011, 1012
> >>
> >> -Adrian
> >>
> >> On 9/23/2011 6:20 AM, Hans Bakker wrote:
> >>> Now we can have rental products where the asset can be rented
> >>>
> >>> In this product type the product is a group of video rentals of the same
> >>> rental price referring to many video assets.
> >>>
> >>> However now we also want to categorize these assets in order to display
> >>> them on the e-commerce website.
> >>>
> >>> Is adding a fixedAssetid field to the ProductCategoryMember entity a
> >>> solution?
> >>>
> >>>

-- 
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Alternative ofbiz website: http://www.ofbiz.info
http://www.antwebsystems.com : Quality services for competitive rates.



Re: discussion: video rentals

2011-09-22 Thread Adrian Crum

Use FixedAssetProduct.

-Adrian

On 9/23/2011 6:37 AM, Hans Bakker wrote:

but if you want a particular instance of a product?

I have products (as i described):

In this product type the product is a group of video rentals of the
same rental price referring to many video assets.

Hans

On Fri, 2011-09-23 at 06:32 +0100, Adrian Crum wrote:

A fixed asset is an instance of a product, much like an inventory item
is an instance of a product. So, no - you do not want to connect a fixed
asset to a product category.

Product: Die Hard DVD
Product Categories: DVD, Action, Drama, Bruce Willis
Fixed Assets: 10010, 10011, 1012

-Adrian

On 9/23/2011 6:20 AM, Hans Bakker wrote:

Now we can have rental products where the asset can be rented

In this product type the product is a group of video rentals of the same
rental price referring to many video assets.

However now we also want to categorize these assets in order to display
them on the e-commerce website.

Is adding a fixedAssetid field to the ProductCategoryMember entity a
solution?




Re: discussion: video rentals

2011-09-22 Thread Hans Bakker
but if you want a particular instance of a product?

I have products (as i described):
> In this product type the product is a group of video rentals of the 
> same rental price referring to many video assets.

Hans

On Fri, 2011-09-23 at 06:32 +0100, Adrian Crum wrote:
> A fixed asset is an instance of a product, much like an inventory item 
> is an instance of a product. So, no - you do not want to connect a fixed 
> asset to a product category.
> 
> Product: Die Hard DVD
> Product Categories: DVD, Action, Drama, Bruce Willis
> Fixed Assets: 10010, 10011, 1012
> 
> -Adrian
> 
> On 9/23/2011 6:20 AM, Hans Bakker wrote:
> > Now we can have rental products where the asset can be rented
> >
> > In this product type the product is a group of video rentals of the same
> > rental price referring to many video assets.
> >
> > However now we also want to categorize these assets in order to display
> > them on the e-commerce website.
> >
> > Is adding a fixedAssetid field to the ProductCategoryMember entity a
> > solution?
> >
> >

-- 
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Alternative ofbiz website: http://www.ofbiz.info
http://www.antwebsystems.com : Quality services for competitive rates.



[jira] [Closed] (OFBIZ-4443) Configuration of postgresql with Ofbiz

2011-09-22 Thread Adrian Crum (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrian Crum closed OFBIZ-4443.
--

Resolution: Not A Problem

Please stop using Jira to ask general questions. Ask your questions on the user 
mailing list instead.


> Configuration of postgresql with Ofbiz
> --
>
> Key: OFBIZ-4443
> URL: https://issues.apache.org/jira/browse/OFBIZ-4443
> Project: OFBiz
>  Issue Type: Task
>  Components: ALL APPLICATIONS
>Affects Versions: Release 10.04
>Reporter: Dhiraj Gupta
>
> i want to configure ofbiz with Postgresql.but i faced some problem in 
> configuration.
>   entity-group-reader="main" entity-eca-reader="main"
> distributed-cache-clear-enabled="false">
>  datasource-name="localpostgres"/>
>  datasource-name="localpostnew"/>
> 
>   entity-group-reader="main" entity-eca-reader="main"
> entity-eca-enabled="false" 
> distributed-cache-clear-enabled="false">
>  datasource-name="localpostgres"/>
>  datasource-name="localpostnew"/>
> 
>  entity-group-reader="main" entity-eca-reader="main">
>   datasource-name="localpostgres"/>
>   datasource-name="localpostnew"/>
>  
> and
>  helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
> schema-name="public"
> field-type-name="postgres"
> check-on-start="true"
> add-missing-on-start="true"
> use-fk-initially-deferred="false"
> alias-view-columns="false"
> join-style="ansi"
> use-binary-type-for-blob="true">
> 
> 
> 
> 
> 
>  jdbc-driver="org.postgresql.Driver"
> jdbc-uri="jdbc:postgresql://localhost:5432/ofbiz"
> jdbc-username="ofbiz"
> jdbc-password="ofbiz"
> isolation-level="ReadCommitted"
> pool-minsize="2"
> pool-maxsize="250"
> time-between-eviction-runs-millis="60"/>
>  helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
> schema-name="public"
> field-type-name="postnew"
> check-on-start="true"
> add-missing-on-start="true"
> use-fk-initially-deferred="false"
> alias-view-columns="false"
> join-style="ansi"
> result-fetch-size="50"
> use-binary-type-for-blob="true">
> 
> 
> 
> 
>  jdbc-driver="org.postgresql.Driver"
> jdbc-uri="jdbc:postgresql://localhost:5432/ofbiz"
> jdbc-username="ofbiz"
> jdbc-password="ofbiz"
> isolation-level="ReadCommitted"
> pool-minsize="2"
> pool-maxsize="250"
> time-between-eviction-runs-millis="60"/>
>   
> after this i run the coomand 
> ant run-install 
> it give the following error
> [java] 2011-10-20 08:49:39,430 (main) [ModelReader.java:389:INFO ] 
> FINISHED LOADING ENTITIES - ALL FILES; #Entities=849 #ViewEntities=267 
> #Fields=8870 #Relationships=2925 #AutoRelationships=2157
>  [java] 2011-10-20 08:49:39,603 (main) [   GenericDelegator.java:244:INFO 
> ] Doing entity definition check...
>  [java] 2011-10-20 08:49:39,614 (main) [ ModelEntityChecker.java:502:INFO 
> ] [initReservedWords] array length=1023
>  [java] Exception in thread "main" java.lang.NullPointerException
>  [java] at 
> org.ofbiz.entity.GenericDelegator.getEntityFieldType(GenericDelegator.java:548)
>  [java] at 
> org.ofbiz.entity.model.ModelEntityChecker.checkEntities(ModelEntityChecker.java:101)
>  [java] at 
> org.ofbiz.entity.GenericDelegator.(GenericDelegator.java:245)
>  [java] at 
> org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33)
>  [java] at 
> org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25)
>  [java] at 
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202)
>  [java] at 
> org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47)
>  [java] at 
> org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230)
>  [java] at 
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100)
>  [java] at 
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
>  [java] at org.ofbiz.base.start.Start.startServer(Start.java:322)
>  [java] at org.ofbiz.base.start.St

Re: discussion: video rentals

2011-09-22 Thread Adrian Crum
A fixed asset is an instance of a product, much like an inventory item 
is an instance of a product. So, no - you do not want to connect a fixed 
asset to a product category.


Product: Die Hard DVD
Product Categories: DVD, Action, Drama, Bruce Willis
Fixed Assets: 10010, 10011, 1012

-Adrian

On 9/23/2011 6:20 AM, Hans Bakker wrote:

Now we can have rental products where the asset can be rented

In this product type the product is a group of video rentals of the same
rental price referring to many video assets.

However now we also want to categorize these assets in order to display
them on the e-commerce website.

Is adding a fixedAssetid field to the ProductCategoryMember entity a
solution?




[jira] [Created] (OFBIZ-4443) Configuration of postgresql with Ofbiz

2011-09-22 Thread Dhiraj Gupta (JIRA)
Configuration of postgresql with Ofbiz
--

 Key: OFBIZ-4443
 URL: https://issues.apache.org/jira/browse/OFBIZ-4443
 Project: OFBiz
  Issue Type: Task
  Components: ALL APPLICATIONS
Affects Versions: Release 10.04
Reporter: Dhiraj Gupta


i want to configure ofbiz with Postgresql.but i faced some problem in 
configuration.
 










 








 
 


 

and















  


after this i run the coomand 
ant run-install 
it give the following error

[java] 2011-10-20 08:49:39,430 (main) [ModelReader.java:389:INFO ] 
FINISHED LOADING ENTITIES - ALL FILES; #Entities=849 #ViewEntities=267 
#Fields=8870 #Relationships=2925 #AutoRelationships=2157
 [java] 2011-10-20 08:49:39,603 (main) [   GenericDelegator.java:244:INFO ] 
Doing entity definition check...
 [java] 2011-10-20 08:49:39,614 (main) [ ModelEntityChecker.java:502:INFO ] 
[initReservedWords] array length=1023
 [java] Exception in thread "main" java.lang.NullPointerException
 [java] at 
org.ofbiz.entity.GenericDelegator.getEntityFieldType(GenericDelegator.java:548)
 [java] at 
org.ofbiz.entity.model.ModelEntityChecker.checkEntities(ModelEntityChecker.java:101)
 [java] at 
org.ofbiz.entity.GenericDelegator.(GenericDelegator.java:245)
 [java] at 
org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33)
 [java] at 
org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25)
 [java] at 
org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202)
 [java] at 
org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47)
 [java] at 
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230)
 [java] at 
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100)
 [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
 [java] at org.ofbiz.base.start.Start.startServer(Start.java:322)
 [java] at org.ofbiz.base.start.Start.start(Start.java:326)
 [java] at org.ofbiz.base.start.Start.main(Start.java:411)
 [java] 2011-10-20 08:49:39,828 (OFBiz_Shutdown_Hook) [
ContainerLoader.java:113:INFO ] Shutting down containers
 [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 38 seconds
 I want to know some other change will be required for configuration .
Please help me.My two days had lost on this thigs.

Thanks
Dhiraj


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




discussion: video rentals

2011-09-22 Thread Hans Bakker
Now we can have rental products where the asset can be rented

In this product type the product is a group of video rentals of the same
rental price referring to many video assets.

However now we also want to categorize these assets in order to display
them on the e-commerce website.

Is adding a fixedAssetid field to the ProductCategoryMember entity a
solution?


-- 
http://www.antwebsystems.com : 
Quality OFBiz support for competitive rates



Re: svn commit: r1167015 - in /ofbiz/trunk: applications/accounting/entitydef/ applications/order/config/ applications/order/data/ applications/order/entitydef/ applications/order/script/org/ofbiz/ord

2011-09-22 Thread Deepak Dixit
Thanks Hans :) 

Thanks & Regards
-- 
Deepak Dixit


On Sep 22, 2011, at 6:37 PM, Hans Bakker wrote:

> Thank you for the tip, we will have a look at it
> 
> Regards,
> Hans
> 
> On Thu, 2011-09-22 at 18:18 +0530, Deepak Dixit wrote:
>> Hi Hans,
>> 
>> inline:
>> 
>> On Sep 9, 2011, at 12:10 PM, hans...@apache.org wrote:
>> 
>>> Author: hansbak
>>> Date: Fri Sep  9 06:40:28 2011
>>> New Revision: 1167015
>>> 
>>> URL: http://svn.apache.org/viewvc?rev=1167015&view=rev
>>> Log:
>>> New product type: Fixed Asset Usage For Rental of an asset which is shipped 
>>> from and returned to inventory. Including Junit test and demo data. More 
>>> explanation will follow in a blog on the 'what is new page'
>>> 
>>> Modified:
>>>   ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml
>>>   ofbiz/trunk/applications/order/config/OrderUiLabels.xml
>>>   ofbiz/trunk/applications/order/data/OrderTypeData.xml
>>>   ofbiz/trunk/applications/order/entitydef/entitymodel_view.xml
>>>   
>>> ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml
>>>   
>>> ofbiz/trunk/applications/order/script/org/ofbiz/order/test/ShoppingCartTests.xml
>>>   ofbiz/trunk/applications/order/servicedef/secas.xml
>>>   ofbiz/trunk/applications/order/servicedef/services.xml
>>>   ofbiz/trunk/applications/order/servicedef/services_return.xml
>>>   
>>> ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
>>>   
>>> ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
>>>   
>>> ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
>>>   ofbiz/trunk/applications/order/testdef/ShoppingCartTests.xml
>>>   
>>> ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/compareproducts.ftl
>>>   
>>> ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/productdetail.ftl
>>>   
>>> ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/productsummary.ftl
>>>   ofbiz/trunk/applications/order/webapp/ordermgr/return/returnItemInc.ftl
>>>   ofbiz/trunk/applications/product/data/ProductTypeData.xml
>>>   ofbiz/trunk/applications/product/widget/catalog/CatalogMenus.xml
>>>   ofbiz/trunk/framework/images/webapp/images/ecommain.css
>>>   ofbiz/trunk/specialpurpose/ecommerce/data/DemoProduct.xml
>>>   
>>> ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/shoppinglist/EditShoppingList.groovy
>>>   ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/cart/showcart.ftl
>>>   
>>> ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl
>>>   
>>> ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl
>>>   ofbiz/trunk/specialpurpose/ecommerce/widget/CommonScreens.xml
>>> 
>>> Modified: ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml
>>> URL: 
>>> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml?rev=1167015&r1=1167014&r2=1167015&view=diff
>>> ==
>>> --- ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml (original)
>>> +++ ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml Fri Sep  
>>> 9 06:40:28 2011
>>> @@ -4069,4 +4069,12 @@ under the License.
>>>
>>>
>>>
>>> +
>>> +
>>> +
>>> +
>>> +>> rel-entity-name="InventoryItem">
>>> +>> rel-field-name="inventoryItemId"/>
>> 
>> In this commit fixedAssetId has beed added in InventoryItem entity, due to 
>> this changes some of view entity throwing out field alias in view entity.
>> Here is the list of those view entity that need to fix:
>> - InventoryItemAndDetail
>> - ItemIssuanceAndInventoryItem
>> - ItemIssuanceInventoryItemAndProduct
>> - ProductInventoryItemAndItemIssuance
>> 
>> Can you please have a look at it?
>> 
>> 
>> Thanks & Regards
> 
> -- 
> Ofbiz on twitter: http://twitter.com/apache_ofbiz
> Alternative ofbiz website: http://www.ofbiz.info
> http://www.antwebsystems.com : Quality services for competitive rates.
> 



[jira] [Commented] (OFBIZ-4441) UtilXml firstChildElement should use getNodeName instead of getLocalName

2011-09-22 Thread Kiran Gawde (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13113122#comment-13113122
 ] 

Kiran Gawde commented on OFBIZ-4441:


Hello Igor, 

Since you discovered this issue, any comments? 

Regards,
Kiran Gawde

Senior Software Architect
Object Edge Inc
(925) 943 5558 x108

"There are two kind of people: Those who do the work and those who take 
the credit. Try to be in the first group because there is less competition 
there."
"Never give up on what you really want to do. The person with big dreams 
is more powerful than one with all the facts".

- Forwarded by Kiran V Gawde/Object Edge on 09/22/2011 07:56 PM -

From:   "Sascha Rodekamp (JIRA)" 
To: ki...@objectedge.com
Date:   09/22/2011 02:43 AM
Subject:[jira] [Commented] (OFBIZ-4441) UtilXml firstChildElement 
should use getNodeName instead of getLocalName




[ 
https://issues.apache.org/jira/browse/OFBIZ-4441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112444#comment-13112444
 
] 

Sascha Rodekamp commented on OFBIZ-4441:


Hi Kiran,
i also don't understand why this two places uses getLocalName(). Just to 
clarify, getLocalName returns null when the Element is created while the 
schema namespace 
processing is turned off.

So i think using getNodeName should work more reliable in this place.

I found a few other places where getLocalName could be replaced with 
getNodeName could you confirm?

Any opinions?

OFBIZ-4441_XmlElementGetNodeName.patch
places it uses getNodeName

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

 


> UtilXml firstChildElement should use getNodeName instead of getLocalName
> 
>
> Key: OFBIZ-4441
> URL: https://issues.apache.org/jira/browse/OFBIZ-4441
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Reporter: Kiran Gawde
>Priority: Minor
> Attachments: OFBIZ-4441-UtilXml.patch, 
> OFBIZ-4441_XmlElementGetNodeName.patch
>
>
> Two places UtilXml uses getNodeName instead of getLocalName. Rest of the 
> places it uses getNodeName

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Closed] (OFBIZ-4349) commit r1077940 breaks the function to retrieve i18n translation from real entity underlying a view

2011-09-22 Thread Erwan de FERRIERES (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Erwan de FERRIERES closed OFBIZ-4349.
-

   Resolution: Fixed
Fix Version/s: SVN trunk

done at 1174308

Thanks Olivier and Leon

> commit r1077940 breaks the function to retrieve i18n translation from real 
> entity underlying a view
> ---
>
> Key: OFBIZ-4349
> URL: https://issues.apache.org/jira/browse/OFBIZ-4349
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: Leon
>Assignee: Erwan de FERRIERES
> Fix For: SVN trunk
>
> Attachments: OFBIZ-4349.patch
>
>
> in r1077940 changeset 
> ([https://fisheye6.atlassian.com/changelog/ofbiz?cs=1077940]), it gets the pk 
> fiels from view entity instead of previous real entity. I cannot understand 
> what author erwan commented: "When using a view and fields with different 
> names than in the original entity, the model was taking the original names so 
> this could lead to warnings". The consequence of this commit is it cannot 
> retrieve i18n translation from real entity now because the pks of view entity 
> is usually different than that of its base tables.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Closed] (OFBIZ-4442) French translation missing in portal pages management

2011-09-22 Thread Erwan de FERRIERES (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Erwan de FERRIERES closed OFBIZ-4442.
-

   Resolution: Fixed
Fix Version/s: SVN trunk

thanks Charles,

done at r1174274

> French translation missing in portal pages management
> -
>
> Key: OFBIZ-4442
> URL: https://issues.apache.org/jira/browse/OFBIZ-4442
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>Reporter: Charles STELTZLEN
>Assignee: Erwan de FERRIERES
>Priority: Trivial
>  Labels: patch
> Fix For: SVN trunk
>
> Attachments: CommonUiLabels.xml.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Somes labels are not translated in Portal Pages management.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Closed] (OFBIZ-4428) trunk: Catalog -> Stores -> ANYSTORE -> Web Sites -> Create New Web Site = ERROR

2011-09-22 Thread Jacques Le Roux (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacques Le Roux closed OFBIZ-4428.
--


> trunk: Catalog -> Stores -> ANYSTORE -> Web Sites -> Create New Web Site = 
> ERROR
> 
>
> Key: OFBIZ-4428
> URL: https://issues.apache.org/jira/browse/OFBIZ-4428
> Project: OFBiz
>  Issue Type: Bug
>  Components: specialpurpose/ecommerce
>Affects Versions: SVN trunk
> Environment: Ubuntu
>Reporter: mz4wheeler
>Assignee: Sascha Rodekamp
>
> Using trunk, you are unable to create a new web site.  The result is:
> Bad Request
> Your browser sent a request that this server could not understand.
> Apache/2.2.14 (Ubuntu) Server at demo-trunk.ofbiz.apache.org Port 443

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Assigned] (OFBIZ-4349) commit r1077940 breaks the function to retrieve i18n translation from real entity underlying a view

2011-09-22 Thread Erwan de FERRIERES (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Erwan de FERRIERES reassigned OFBIZ-4349:
-

Assignee: Erwan de FERRIERES

> commit r1077940 breaks the function to retrieve i18n translation from real 
> entity underlying a view
> ---
>
> Key: OFBIZ-4349
> URL: https://issues.apache.org/jira/browse/OFBIZ-4349
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: Leon
>Assignee: Erwan de FERRIERES
> Attachments: OFBIZ-4349.patch
>
>
> in r1077940 changeset 
> ([https://fisheye6.atlassian.com/changelog/ofbiz?cs=1077940]), it gets the pk 
> fiels from view entity instead of previous real entity. I cannot understand 
> what author erwan commented: "When using a view and fields with different 
> names than in the original entity, the model was taking the original names so 
> this could lead to warnings". The consequence of this commit is it cannot 
> retrieve i18n translation from real entity now because the pks of view entity 
> is usually different than that of its base tables.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Assigned] (OFBIZ-4442) French translation missing in portal pages management

2011-09-22 Thread Erwan de FERRIERES (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Erwan de FERRIERES reassigned OFBIZ-4442:
-

Assignee: Erwan de FERRIERES

> French translation missing in portal pages management
> -
>
> Key: OFBIZ-4442
> URL: https://issues.apache.org/jira/browse/OFBIZ-4442
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>Reporter: Charles STELTZLEN
>Assignee: Erwan de FERRIERES
>Priority: Trivial
>  Labels: patch
> Attachments: CommonUiLabels.xml.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Somes labels are not translated in Portal Pages management.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (OFBIZ-4349) commit r1077940 breaks the function to retrieve i18n translation from real entity underlying a view

2011-09-22 Thread Leon (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112670#comment-13112670
 ] 

Leon commented on OFBIZ-4349:
-

I understand. In the code I paste, it tries to get the real field name from 
alias. But in your patch, it's reversed to find the alias name for real field. 
Thanks for your explain and contribution. I think it's ok to apply your patch.

> commit r1077940 breaks the function to retrieve i18n translation from real 
> entity underlying a view
> ---
>
> Key: OFBIZ-4349
> URL: https://issues.apache.org/jira/browse/OFBIZ-4349
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: Leon
> Attachments: OFBIZ-4349.patch
>
>
> in r1077940 changeset 
> ([https://fisheye6.atlassian.com/changelog/ofbiz?cs=1077940]), it gets the pk 
> fiels from view entity instead of previous real entity. I cannot understand 
> what author erwan commented: "When using a view and fields with different 
> names than in the original entity, the model was taking the original names so 
> this could lead to warnings". The consequence of this commit is it cannot 
> retrieve i18n translation from real entity now because the pks of view entity 
> is usually different than that of its base tables.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (OFBIZ-4442) French translation missing in portal pages management

2011-09-22 Thread Charles STELTZLEN (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charles STELTZLEN updated OFBIZ-4442:
-

Attachment: CommonUiLabels.xml.patch

Patch adding missing translations

> French translation missing in portal pages management
> -
>
> Key: OFBIZ-4442
> URL: https://issues.apache.org/jira/browse/OFBIZ-4442
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>Reporter: Charles STELTZLEN
>Priority: Trivial
>  Labels: patch
> Attachments: CommonUiLabels.xml.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Somes labels are not translated in Portal Pages management.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (OFBIZ-4442) French translation missing in portal pages management

2011-09-22 Thread Charles STELTZLEN (JIRA)
French translation missing in portal pages management
-

 Key: OFBIZ-4442
 URL: https://issues.apache.org/jira/browse/OFBIZ-4442
 Project: OFBiz
  Issue Type: Improvement
  Components: framework
Reporter: Charles STELTZLEN
Priority: Trivial


Somes labels are not translated in Portal Pages management.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




Re: svn commit: r1171093 - in /ofbiz/trunk/applications: accounting/servicedef/ order/src/org/ofbiz/order/order/ product/script/org/ofbiz/shipment/issuance/ product/script/org/ofbiz/shipment/receipt/

2011-09-22 Thread Scott Gray
Thanks for taking another look at it Hans, and you're probably right that the 
owner by itself probably isn't the best way to solve the problem.  

In general, neither of the products you mention below are sales/purchase 
shipments but I guess you are using those shipment types for them.  Have you 
considered using the incoming/outgoing shipment types instead and then adding a 
check in the ledger services for the shipment type?

Regards
Scott

On 20/09/2011, at 3:51 PM, Hans Bakker wrote:

> Hi Scott,
> 
> We looked into your comment, but found that inventoryitem owner is not
> always affecting accounting:
> 
> 1. service product: foreign owner: no account update
> 2. rental product: is owner: also no accounting update
> 
> we are following however your remark to generalize:
> 
> for both product types we use the new variable adjustAccounting
> 
> please see Committed revision 1172965.
> 
> Regards,
> Hans
> 
> 
> On Fri, 2011-09-16 at 22:14 +1200, Scott Gray wrote:
>> Hi Hans,
>> 
>> IMO it would probably be more robust to let the service execute and then 
>> check who the owner of the inventoryItem is before creating the transactions 
>> instead of checking the productTypeId.  This would cover a much larger range 
>> of receipt and issuances in the future and really is the true rule that 
>> we're trying to enforce: "Don't create ledger entries for inventory 
>> movements if we don't own the inventory".
>> 
>> Regards
>> Scott
>> 
>> On 16/09/2011, at 1:32 AM, hans...@apache.org wrote:
>> 
>>> Author: hansbak
>>> Date: Thu Sep 15 13:32:52 2011
>>> New Revision: 1171093
>>> 
>>> URL: http://svn.apache.org/viewvc?rev=1171093&view=rev
>>> Log:
>>> make sure that the product type productservice does not affect accounting 
>>> when entering and shipping from inventory
>>> 
>>> Modified:
>>>   ofbiz/trunk/applications/accounting/servicedef/secas_ledger.xml
>>>   
>>> ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
>>>   
>>> ofbiz/trunk/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml
>>>   
>>> ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml
>>>   ofbiz/trunk/applications/product/servicedef/services_shipment.xml
>>>   
>>> ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java
>>> 
>>> Modified: ofbiz/trunk/applications/accounting/servicedef/secas_ledger.xml
>>> URL: 
>>> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/secas_ledger.xml?rev=1171093&r1=1171092&r2=1171093&view=diff
>>> ==
>>> --- ofbiz/trunk/applications/accounting/servicedef/secas_ledger.xml 
>>> (original)
>>> +++ ofbiz/trunk/applications/accounting/servicedef/secas_ledger.xml Thu Sep 
>>> 15 13:32:52 2011
>>> @@ -31,6 +31,8 @@ under the License.
>>>
>>>
>>>
>>> +
>>> +>> value="SERVICE_PRODUCT"/>
>>>>> mode="sync"/>
>>>
>>> 
>>> @@ -42,6 +44,8 @@ under the License.
>>> 
>>>
>>>
>>> +
>>> +>> value="SERVICE_PRODUCT"/>
>>>
>>>
>>> 
>>> 
>>> Modified: 
>>> ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
>>> URL: 
>>> http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java?rev=1171093&r1=1171092&r2=1171093&view=diff
>>> ==
>>> --- 
>>> ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java 
>>> (original)
>>> +++ 
>>> ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java 
>>> Thu Sep 15 13:32:52 2011
>>> @@ -1168,7 +1168,8 @@ public class OrderServices {
>>>GenericValue permUserLogin = 
>>> delegator.findByPrimaryKeyCache("UserLogin", UtilMisc.toMap("userLoginId", 
>>> "system"));
>>>ripCtx.put("productId", productId);
>>>ripCtx.put("facilityId", inventoryFacilityId);
>>> -ripCtx.put("inventoryItemTypeId", 
>>> "NON_SERIAL_INV_ITEM");
>>> +ripCtx.put("inventoryItemTypeId", 
>>> "SERIALIZED_INV_ITEM");
>>> +ripCtx.put("statusId","INV_AVAILABLE");
>>>ripCtx.put("quantityAccepted", 
>>> orderItem.getBigDecimal("quantity"));
>>>ripCtx.put("quantityRejected", 0.0);
>>>ripCtx.put("userLogin", permUserLogin);
>>> 
>>> Modified: 
>>> ofbiz/trunk/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml
>>> URL: 
>>> http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml?rev=1171093&r1=1171092&r2=1171093&view=diff
>>> ==
>>> --- 
>>> ofbiz/trunk/ap

Re: svn commit: r1167015 - in /ofbiz/trunk: applications/accounting/entitydef/ applications/order/config/ applications/order/data/ applications/order/entitydef/ applications/order/script/org/ofbiz/ord

2011-09-22 Thread Hans Bakker
Thank you for the tip, we will have a look at it

Regards,
Hans

On Thu, 2011-09-22 at 18:18 +0530, Deepak Dixit wrote:
> Hi Hans,
> 
> inline:
> 
> On Sep 9, 2011, at 12:10 PM, hans...@apache.org wrote:
> 
> > Author: hansbak
> > Date: Fri Sep  9 06:40:28 2011
> > New Revision: 1167015
> > 
> > URL: http://svn.apache.org/viewvc?rev=1167015&view=rev
> > Log:
> > New product type: Fixed Asset Usage For Rental of an asset which is shipped 
> > from and returned to inventory. Including Junit test and demo data. More 
> > explanation will follow in a blog on the 'what is new page'
> > 
> > Modified:
> >ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml
> >ofbiz/trunk/applications/order/config/OrderUiLabels.xml
> >ofbiz/trunk/applications/order/data/OrderTypeData.xml
> >ofbiz/trunk/applications/order/entitydef/entitymodel_view.xml
> >
> > ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml
> >
> > ofbiz/trunk/applications/order/script/org/ofbiz/order/test/ShoppingCartTests.xml
> >ofbiz/trunk/applications/order/servicedef/secas.xml
> >ofbiz/trunk/applications/order/servicedef/services.xml
> >ofbiz/trunk/applications/order/servicedef/services_return.xml
> >
> > ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
> >
> > ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
> >
> > ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
> >ofbiz/trunk/applications/order/testdef/ShoppingCartTests.xml
> >
> > ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/compareproducts.ftl
> >
> > ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/productdetail.ftl
> >
> > ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/productsummary.ftl
> >ofbiz/trunk/applications/order/webapp/ordermgr/return/returnItemInc.ftl
> >ofbiz/trunk/applications/product/data/ProductTypeData.xml
> >ofbiz/trunk/applications/product/widget/catalog/CatalogMenus.xml
> >ofbiz/trunk/framework/images/webapp/images/ecommain.css
> >ofbiz/trunk/specialpurpose/ecommerce/data/DemoProduct.xml
> >
> > ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/shoppinglist/EditShoppingList.groovy
> >ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/cart/showcart.ftl
> >
> > ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl
> >
> > ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl
> >ofbiz/trunk/specialpurpose/ecommerce/widget/CommonScreens.xml
> > 
> > Modified: ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml
> > URL: 
> > http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml?rev=1167015&r1=1167014&r2=1167015&view=diff
> > ==
> > --- ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml (original)
> > +++ ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml Fri Sep  
> > 9 06:40:28 2011
> > @@ -4069,4 +4069,12 @@ under the License.
> > 
> > 
> > 
> > +
> > +
> > +
> > +
> > + > rel-entity-name="InventoryItem">
> > + > rel-field-name="inventoryItemId"/>
> 
> In this commit fixedAssetId has beed added in InventoryItem entity, due to 
> this changes some of view entity throwing out field alias in view entity.
> Here is the list of those view entity that need to fix:
> - InventoryItemAndDetail
> - ItemIssuanceAndInventoryItem
> - ItemIssuanceInventoryItemAndProduct
> - ProductInventoryItemAndItemIssuance
> 
> Can you please have a look at it?
> 
> 
> Thanks & Regards

-- 
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Alternative ofbiz website: http://www.ofbiz.info
http://www.antwebsystems.com : Quality services for competitive rates.



Re: svn commit: r1167015 - in /ofbiz/trunk: applications/accounting/entitydef/ applications/order/config/ applications/order/data/ applications/order/entitydef/ applications/order/script/org/ofbiz/ord

2011-09-22 Thread Deepak Dixit
Hi Hans,

inline:

On Sep 9, 2011, at 12:10 PM, hans...@apache.org wrote:

> Author: hansbak
> Date: Fri Sep  9 06:40:28 2011
> New Revision: 1167015
> 
> URL: http://svn.apache.org/viewvc?rev=1167015&view=rev
> Log:
> New product type: Fixed Asset Usage For Rental of an asset which is shipped 
> from and returned to inventory. Including Junit test and demo data. More 
> explanation will follow in a blog on the 'what is new page'
> 
> Modified:
>ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml
>ofbiz/trunk/applications/order/config/OrderUiLabels.xml
>ofbiz/trunk/applications/order/data/OrderTypeData.xml
>ofbiz/trunk/applications/order/entitydef/entitymodel_view.xml
>
> ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml
>
> ofbiz/trunk/applications/order/script/org/ofbiz/order/test/ShoppingCartTests.xml
>ofbiz/trunk/applications/order/servicedef/secas.xml
>ofbiz/trunk/applications/order/servicedef/services.xml
>ofbiz/trunk/applications/order/servicedef/services_return.xml
>ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
>
> ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
>
> ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
>ofbiz/trunk/applications/order/testdef/ShoppingCartTests.xml
>
> ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/compareproducts.ftl
>
> ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/productdetail.ftl
>
> ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/productsummary.ftl
>ofbiz/trunk/applications/order/webapp/ordermgr/return/returnItemInc.ftl
>ofbiz/trunk/applications/product/data/ProductTypeData.xml
>ofbiz/trunk/applications/product/widget/catalog/CatalogMenus.xml
>ofbiz/trunk/framework/images/webapp/images/ecommain.css
>ofbiz/trunk/specialpurpose/ecommerce/data/DemoProduct.xml
>
> ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/shoppinglist/EditShoppingList.groovy
>ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/cart/showcart.ftl
>
> ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl
>
> ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl
>ofbiz/trunk/specialpurpose/ecommerce/widget/CommonScreens.xml
> 
> Modified: ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml
> URL: 
> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml?rev=1167015&r1=1167014&r2=1167015&view=diff
> ==
> --- ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml (original)
> +++ ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml Fri Sep  9 
> 06:40:28 2011
> @@ -4069,4 +4069,12 @@ under the License.
> 
> 
> 
> +
> +
> +
> +
> + rel-entity-name="InventoryItem">
> + rel-field-name="inventoryItemId"/>

In this commit fixedAssetId has beed added in InventoryItem entity, due to this 
changes some of view entity throwing out field alias in view entity.
Here is the list of those view entity that need to fix:
- InventoryItemAndDetail
- ItemIssuanceAndInventoryItem
- ItemIssuanceInventoryItemAndProduct
- ProductInventoryItemAndItemIssuance

Can you please have a look at it?


Thanks & Regards
-- 
Deepak Dixit


> +
> +
> 



Re: svn commit: r1173978 - in /ofbiz/branches/release11.04/specialpurpose/ecommerce: webapp/ecommerce/order/OnePageCheckoutProcess.ftl widget/OrderScreens.xml

2011-09-22 Thread Sascha Rodekamp
:o) Ok reverted.

2011/9/22 Ashish Vijaywargiya 

> :-)
>
> --
> Ashish
>
> On Thu, Sep 22, 2011 at 4:02 PM, Jacques Le Roux <
> jacques.le.r...@les7arts.com> wrote:
>
> > Not a bug fix Sascha ;o)
> >
> > Jacques
> >
> > From: 
> >
> >  Author: sascharodekamp
> >> Date: Thu Sep 22 07:42:37 2011
> >> New Revision: 1173978
> >>
> >> URL: http://svn.apache.org/viewvc?**rev=1173978&view=rev<
> http://svn.apache.org/viewvc?rev=1173978&view=rev>
> >> Log:
> >> OnePageCheckout should reuse UpdateCart while first time rendering (
> >> https://issues.apache.org/**jira/browse/OFBIZ-4436<
> https://issues.apache.org/jira/browse/OFBIZ-4436>)
> >> A patch from Kiran Gawde which reuses the UpdateCart Screen in the
> >> OnePageCheckout to avoid code duplication.
> >>
> >> Modified:
> >>   ofbiz/branches/release11.04/**specialpurpose/ecommerce/**
> >> webapp/ecommerce/order/**OnePageCheckoutProcess.ftl
> >>   ofbiz/branches/release11.04/**specialpurpose/ecommerce/**
> >> widget/OrderScreens.xml
> >>
> >> Modified: ofbiz/branches/release11.04/**specialpurpose/ecommerce/**
> >> webapp/ecommerce/order/**OnePageCheckoutProcess.ftl
> >> URL: http://svn.apache.org/viewvc/**ofbiz/branches/release11.04/**
> >> specialpurpose/ecommerce/**webapp/ecommerce/order/**
> >> OnePageCheckoutProcess.ftl?**rev=1173978&r1=1173977&r2=**
> >> 1173978&view=diff<
> http://svn.apache.org/viewvc/ofbiz/branches/release11.04/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl?rev=1173978&r1=1173977&r2=1173978&view=diff
> >
> >> ==**==**
> >> ==
> >> --- ofbiz/branches/release11.04/**specialpurpose/ecommerce/**
> >> webapp/ecommerce/order/**OnePageCheckoutProcess.ftl (original)
> >> +++ ofbiz/branches/release11.04/**specialpurpose/ecommerce/**
> >> webapp/ecommerce/order/**OnePageCheckoutProcess.ftl Thu Sep 22 07:42:37
> >> 2011
> >> @@ -25,171 +25,7 @@ under the License.
> >>
> >> <#--  ==**==**
> >> ==**==**== -->
> >>
> >> -  ${uiLabelMap.**EcommerceStep} 1: ${uiLabelMap.**
> >> PageTitleShoppingCart}
> >> -  
> >> - >> class="button">${uiLabelMap.**EcommerceClickHereToEdit}
> >> -
> >> -  
> >> -
> >> -  ${uiLabelMap.**OrderItem}
> >> -  ${uiLabelMap.**
> >> CommonDescription}
> >> -  ${uiLabelMap.**
> >> EcommerceUnitPrice}
> >> -  ${uiLabelMap.**OrderQuantity}
> >> -  ${uiLabelMap.**
> >> EcommerceAdjustments}
> >> -  ${uiLabelMap.**
> >> EcommerceItemTotal}
> >> -
> >> -  
> >> -  
> >> -
> >> -   colspan="5">${uiLabelMap.
> >> **CommonSubtotal}
> >> -   id="completedCartSubTotal"><@**ofbizCurrency
> >> amount=shoppingCart.**getSubTotal() isoCode=shoppingCart.**getCurrency()
> >> />
> >> -
> >> -<#assign orderAdjustmentsTotal = 0 />
> >> -<#list shoppingCart.getAdjustments() as cartAdjustment>
> >> -  <#assign orderAdjustmentsTotal =
> orderAdjustmentsTotal
> >> + Static["org.ofbiz.order.order.**OrderReadHelper"].**
> >> calcOrderAdjustment(**cartAdjustment, shoppingCart.getSubTotal()) />
> >> -
> >> -
> >> -   >> colspan="5">${uiLabelMap.**ProductDiscount}
> >> -   >> id="completedCartDiscount"><**input type="hidden"
> value="${**orderAdjustmentsTotal}"
> >> id="**initializedCompletedCartDiscou**nt" /><@ofbizCurrency
> >> amount=orderAdjustmentsTotal isoCode=shoppingCart.**getCurrency()
> />
> >> -
> >> -
> >> -   >> colspan="5">${uiLabelMap.**OrderShippingAndHandling}
> >> -  <@**ofbizCurrency
> amount=shoppingCart.**getTotalShipping()
> >> isoCode=shoppingCart.**getCurrency() />
> >> -
> >> -
> >> -   colspan="5">${uiLabelMap.
> >> **OrderSalesTax}
> >> -  <@**ofbizCurrency
> amount=shoppingCart.**getTotalSalesTax()
> >> isoCode=shoppingCart.**getCurrency() />
> >> -
> >> -
> >> -   >> colspan="5">${uiLabelMap.**OrderGrandTotal}
> >> -  <@ofbizCurrency
> amount=shoppingCart.**getDisplayGrandTotal()
> >> isoCode=shoppingCart.**getCurrency() />
> >> -
> >> -  
> >> -  
> >> -<#list shoppingCart.items() as cartLine>
> >> -  <#if cartLine.getProductId()?**exists>
> >> -<#if cartLine.getParentProductId()?**exists>
> >> -  <#assign parentProductId =
> >> cartLine.getParentProductId() />
> >> -<#else>
> >> -  <#assign parentPr

Re: svn commit: r1173978 - in /ofbiz/branches/release11.04/specialpurpose/ecommerce: webapp/ecommerce/order/OnePageCheckoutProcess.ftl widget/OrderScreens.xml

2011-09-22 Thread Ashish Vijaywargiya
:-)

--
Ashish

On Thu, Sep 22, 2011 at 4:02 PM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Not a bug fix Sascha ;o)
>
> Jacques
>
> From: 
>
>  Author: sascharodekamp
>> Date: Thu Sep 22 07:42:37 2011
>> New Revision: 1173978
>>
>> URL: 
>> http://svn.apache.org/viewvc?**rev=1173978&view=rev
>> Log:
>> OnePageCheckout should reuse UpdateCart while first time rendering (
>> https://issues.apache.org/**jira/browse/OFBIZ-4436)
>> A patch from Kiran Gawde which reuses the UpdateCart Screen in the
>> OnePageCheckout to avoid code duplication.
>>
>> Modified:
>>   ofbiz/branches/release11.04/**specialpurpose/ecommerce/**
>> webapp/ecommerce/order/**OnePageCheckoutProcess.ftl
>>   ofbiz/branches/release11.04/**specialpurpose/ecommerce/**
>> widget/OrderScreens.xml
>>
>> Modified: ofbiz/branches/release11.04/**specialpurpose/ecommerce/**
>> webapp/ecommerce/order/**OnePageCheckoutProcess.ftl
>> URL: http://svn.apache.org/viewvc/**ofbiz/branches/release11.04/**
>> specialpurpose/ecommerce/**webapp/ecommerce/order/**
>> OnePageCheckoutProcess.ftl?**rev=1173978&r1=1173977&r2=**
>> 1173978&view=diff
>> ==**==**
>> ==
>> --- ofbiz/branches/release11.04/**specialpurpose/ecommerce/**
>> webapp/ecommerce/order/**OnePageCheckoutProcess.ftl (original)
>> +++ ofbiz/branches/release11.04/**specialpurpose/ecommerce/**
>> webapp/ecommerce/order/**OnePageCheckoutProcess.ftl Thu Sep 22 07:42:37
>> 2011
>> @@ -25,171 +25,7 @@ under the License.
>>
>> <#--  ==**==**
>> ==**==**== -->
>>
>> -  ${uiLabelMap.**EcommerceStep} 1: ${uiLabelMap.**
>> PageTitleShoppingCart}
>> -  
>> -> class="button">${uiLabelMap.**EcommerceClickHereToEdit}
>> -
>> -  
>> -
>> -  ${uiLabelMap.**OrderItem}
>> -  ${uiLabelMap.**
>> CommonDescription}
>> -  ${uiLabelMap.**
>> EcommerceUnitPrice}
>> -  ${uiLabelMap.**OrderQuantity}
>> -  ${uiLabelMap.**
>> EcommerceAdjustments}
>> -  ${uiLabelMap.**
>> EcommerceItemTotal}
>> -
>> -  
>> -  
>> -
>> -  ${uiLabelMap.
>> **CommonSubtotal}
>> -  > id="completedCartSubTotal"><@**ofbizCurrency
>> amount=shoppingCart.**getSubTotal() isoCode=shoppingCart.**getCurrency()
>> />
>> -
>> -<#assign orderAdjustmentsTotal = 0 />
>> -<#list shoppingCart.getAdjustments() as cartAdjustment>
>> -  <#assign orderAdjustmentsTotal = orderAdjustmentsTotal
>> + Static["org.ofbiz.order.order.**OrderReadHelper"].**
>> calcOrderAdjustment(**cartAdjustment, shoppingCart.getSubTotal()) />
>> -
>> -
>> -  > colspan="5">${uiLabelMap.**ProductDiscount}
>> -  > id="completedCartDiscount"><**input type="hidden" 
>> value="${**orderAdjustmentsTotal}"
>> id="**initializedCompletedCartDiscou**nt" /><@ofbizCurrency
>> amount=orderAdjustmentsTotal isoCode=shoppingCart.**getCurrency() />
>> -
>> -
>> -  > colspan="5">${uiLabelMap.**OrderShippingAndHandling}
>> -  <@**ofbizCurrency 
>> amount=shoppingCart.**getTotalShipping()
>> isoCode=shoppingCart.**getCurrency() />
>> -
>> -
>> -  ${uiLabelMap.
>> **OrderSalesTax}
>> -  <@**ofbizCurrency 
>> amount=shoppingCart.**getTotalSalesTax()
>> isoCode=shoppingCart.**getCurrency() />
>> -
>> -
>> -  > colspan="5">${uiLabelMap.**OrderGrandTotal}
>> -  <@ofbizCurrency 
>> amount=shoppingCart.**getDisplayGrandTotal()
>> isoCode=shoppingCart.**getCurrency() />
>> -
>> -  
>> -  
>> -<#list shoppingCart.items() as cartLine>
>> -  <#if cartLine.getProductId()?**exists>
>> -<#if cartLine.getParentProductId()?**exists>
>> -  <#assign parentProductId =
>> cartLine.getParentProductId() />
>> -<#else>
>> -  <#assign parentProductId = cartLine.getProductId()
>> />
>> -
>> -<#assign smallImageUrl = Static["org.ofbiz.product.*
>> *product.ProductContentWrapper"**].getProductContentAsText(**cartLine.getProduct(),
>> "SMALL_IMAGE_URL", locale, dispatcher)?if_exists />
>> -<#if

Re: svn commit: r1173978 - in /ofbiz/branches/release11.04/specialpurpose/ecommerce: webapp/ecommerce/order/OnePageCheckoutProcess.ftl widget/OrderScreens.xml

2011-09-22 Thread Jacques Le Roux

Not a bug fix Sascha ;o)

Jacques

From: 

Author: sascharodekamp
Date: Thu Sep 22 07:42:37 2011
New Revision: 1173978

URL: http://svn.apache.org/viewvc?rev=1173978&view=rev
Log:
OnePageCheckout should reuse UpdateCart while first time rendering (https://issues.apache.org/jira/browse/OFBIZ-4436) A patch from 
Kiran Gawde which reuses the UpdateCart Screen in the OnePageCheckout to avoid code duplication.


Modified:
   
ofbiz/branches/release11.04/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl
   ofbiz/branches/release11.04/specialpurpose/ecommerce/widget/OrderScreens.xml

Modified: 
ofbiz/branches/release11.04/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release11.04/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl?rev=1173978&r1=1173977&r2=1173978&view=diff

==
--- 
ofbiz/branches/release11.04/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl
 (original)
+++ ofbiz/branches/release11.04/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl Thu Sep 22 07:42:37 
2011

@@ -25,171 +25,7 @@ under the License.

<#--  
== -->


-  ${uiLabelMap.EcommerceStep} 1: 
${uiLabelMap.PageTitleShoppingCart}
-  
-${uiLabelMap.EcommerceClickHereToEdit}
-
-  
-
-  ${uiLabelMap.OrderItem}
-  ${uiLabelMap.CommonDescription}
-  ${uiLabelMap.EcommerceUnitPrice}
-  ${uiLabelMap.OrderQuantity}
-  ${uiLabelMap.EcommerceAdjustments}
-  ${uiLabelMap.EcommerceItemTotal}
-
-  
-  
-
-  ${uiLabelMap.CommonSubtotal}
-  <@ofbizCurrency amount=shoppingCart.getSubTotal() 
isoCode=shoppingCart.getCurrency() />

-
-<#assign orderAdjustmentsTotal = 0 />
-<#list shoppingCart.getAdjustments() as cartAdjustment>
-  <#assign orderAdjustmentsTotal = orderAdjustmentsTotal + 
Static["org.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />

-
-
-  ${uiLabelMap.ProductDiscount}
-  id="initializedCompletedCartDiscount" /><@ofbizCurrency amount=orderAdjustmentsTotal isoCode=shoppingCart.getCurrency() />

-
-
-  ${uiLabelMap.OrderShippingAndHandling}
-  <@ofbizCurrency 
amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() />

-
-
-  ${uiLabelMap.OrderSalesTax}
-  <@ofbizCurrency amount=shoppingCart.getTotalSalesTax() 
isoCode=shoppingCart.getCurrency() />

-
-
-  ${uiLabelMap.OrderGrandTotal}
-  <@ofbizCurrency 
amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() />

-
-  
-  
-<#list shoppingCart.items() as cartLine>
-  <#if cartLine.getProductId()?exists>
-<#if cartLine.getParentProductId()?exists>
-  <#assign parentProductId = cartLine.getParentProductId() 
/>
-<#else>
-  <#assign parentProductId = cartLine.getProductId() />
-
-<#assign smallImageUrl = 
Static["org.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", 
locale, dispatcher)?if_exists />

-<#if !smallImageUrl?string?has_content><#assign smallImageUrl = "" 
/>
-  
-  
-src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix?if_exists}${smallImageUrl}" alt = "Product Image" 
/>

-${cartLine.getName()?if_exists}
-${cartLine.getDisplayPrice()}
-id="completedCartItemQty_${cartLine_index}">${cartLine.getQuantity()?string.number}
-<@ofbizCurrency 
amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
-<@ofbizCurrency 
amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() />

-  
-
-  
-
-  
-
-<#-- = -->
-  
-
-
-  
-  
-  
-
-  
-

[jira] [Commented] (OFBIZ-4428) trunk: Catalog -> Stores -> ANYSTORE -> Web Sites -> Create New Web Site = ERROR

2011-09-22 Thread Sascha Rodekamp (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112457#comment-13112457
 ] 

Sascha Rodekamp commented on OFBIZ-4428:


Thanks Hans

> trunk: Catalog -> Stores -> ANYSTORE -> Web Sites -> Create New Web Site = 
> ERROR
> 
>
> Key: OFBIZ-4428
> URL: https://issues.apache.org/jira/browse/OFBIZ-4428
> Project: OFBiz
>  Issue Type: Bug
>  Components: specialpurpose/ecommerce
>Affects Versions: SVN trunk
> Environment: Ubuntu
>Reporter: mz4wheeler
>Assignee: Sascha Rodekamp
>
> Using trunk, you are unable to create a new web site.  The result is:
> Bad Request
> Your browser sent a request that this server could not understand.
> Apache/2.2.14 (Ubuntu) Server at demo-trunk.ofbiz.apache.org Port 443

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Resolved] (OFBIZ-4428) trunk: Catalog -> Stores -> ANYSTORE -> Web Sites -> Create New Web Site = ERROR

2011-09-22 Thread Hans Bakker (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hans Bakker resolved OFBIZ-4428.


Resolution: Fixed

problem fixed in revision 1174036

thank you for the report,
Hans

> trunk: Catalog -> Stores -> ANYSTORE -> Web Sites -> Create New Web Site = 
> ERROR
> 
>
> Key: OFBIZ-4428
> URL: https://issues.apache.org/jira/browse/OFBIZ-4428
> Project: OFBiz
>  Issue Type: Bug
>  Components: specialpurpose/ecommerce
>Affects Versions: SVN trunk
> Environment: Ubuntu
>Reporter: mz4wheeler
>Assignee: Sascha Rodekamp
>
> Using trunk, you are unable to create a new web site.  The result is:
> Bad Request
> Your browser sent a request that this server could not understand.
> Apache/2.2.14 (Ubuntu) Server at demo-trunk.ofbiz.apache.org Port 443

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (OFBIZ-4441) UtilXml firstChildElement should use getNodeName instead of getLocalName

2011-09-22 Thread Sascha Rodekamp (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sascha Rodekamp updated OFBIZ-4441:
---

Attachment: OFBIZ-4441_XmlElementGetNodeName.patch

> UtilXml firstChildElement should use getNodeName instead of getLocalName
> 
>
> Key: OFBIZ-4441
> URL: https://issues.apache.org/jira/browse/OFBIZ-4441
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Reporter: Kiran Gawde
>Priority: Minor
> Attachments: OFBIZ-4441-UtilXml.patch, 
> OFBIZ-4441_XmlElementGetNodeName.patch
>
>
> Two places UtilXml uses getNodeName instead of getLocalName. Rest of the 
> places it uses getNodeName

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (OFBIZ-4441) UtilXml firstChildElement should use getNodeName instead of getLocalName

2011-09-22 Thread Sascha Rodekamp (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112444#comment-13112444
 ] 

Sascha Rodekamp commented on OFBIZ-4441:


Hi Kiran,
i also don't understand why this two places uses getLocalName(). Just to 
clarify, getLocalName returns null when the Element is created while the schema 
namespace 
processing is turned off.

So i think using getNodeName should work more reliable in this place.

I found a few other places where getLocalName could be replaced with 
getNodeName could you confirm?

Any opinions?

> UtilXml firstChildElement should use getNodeName instead of getLocalName
> 
>
> Key: OFBIZ-4441
> URL: https://issues.apache.org/jira/browse/OFBIZ-4441
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Reporter: Kiran Gawde
>Priority: Minor
> Attachments: OFBIZ-4441-UtilXml.patch, 
> OFBIZ-4441_XmlElementGetNodeName.patch
>
>
> Two places UtilXml uses getNodeName instead of getLocalName. Rest of the 
> places it uses getNodeName

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Issue Comment Edited] (OFBIZ-4428) trunk: Catalog -> Stores -> ANYSTORE -> Web Sites -> Create New Web Site = ERROR

2011-09-22 Thread Sascha Rodekamp (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112425#comment-13112425
 ] 

Sascha Rodekamp edited comment on OFBIZ-4428 at 9/22/11 9:06 AM:
-

Hi mz4wheeler,

a simple explanation:
Before the last update 1130415 we have the following line in the screen 
definition

{code}


{code}

Hans removed both lines. The result is, the FTL don't know ${productStoreId}. 
I'm not sure why Hans remove both lines, if he did this on purpose or 
accidentally. Maybe he could give a short answer.

So we have to alternatives, the one you suggested and reintegrate

{code}

{code} 


 



  was (Author: sascha):
Hi mz4wheeler,

a simple explanation:
Before the last update 1130415 we have the following line in the screen 
definition

{code}


{code}

Hans removed both lines. The result is, the FTL don't know ${productStoreId}. 
I'm not sure why Hans remove both lines, if he did this on purpose or 
accidentally. Maybe he could give a short answer.

So we have to alternatives, the one you suggested and reintegrate
{code}

{code} 


 


  
> trunk: Catalog -> Stores -> ANYSTORE -> Web Sites -> Create New Web Site = 
> ERROR
> 
>
> Key: OFBIZ-4428
> URL: https://issues.apache.org/jira/browse/OFBIZ-4428
> Project: OFBiz
>  Issue Type: Bug
>  Components: specialpurpose/ecommerce
>Affects Versions: SVN trunk
> Environment: Ubuntu
>Reporter: mz4wheeler
>Assignee: Sascha Rodekamp
>
> Using trunk, you are unable to create a new web site.  The result is:
> Bad Request
> Your browser sent a request that this server could not understand.
> Apache/2.2.14 (Ubuntu) Server at demo-trunk.ofbiz.apache.org Port 443

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (OFBIZ-4428) trunk: Catalog -> Stores -> ANYSTORE -> Web Sites -> Create New Web Site = ERROR

2011-09-22 Thread Sascha Rodekamp (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112425#comment-13112425
 ] 

Sascha Rodekamp commented on OFBIZ-4428:


Hi mz4wheeler,

a simple explanation:
Before the last update 1130415 we have the following line in the screen 
definition

{code}


{code}

Hans removed both lines. The result is, the FTL don't know ${productStoreId}. 
I'm not sure why Hans remove both lines, if he did this on purpose or 
accidentally. Maybe he could give a short answer.

So we have to alternatives, the one you suggested and reintegrate
{code}

{code} 


 



> trunk: Catalog -> Stores -> ANYSTORE -> Web Sites -> Create New Web Site = 
> ERROR
> 
>
> Key: OFBIZ-4428
> URL: https://issues.apache.org/jira/browse/OFBIZ-4428
> Project: OFBiz
>  Issue Type: Bug
>  Components: specialpurpose/ecommerce
>Affects Versions: SVN trunk
> Environment: Ubuntu
>Reporter: mz4wheeler
>Assignee: Sascha Rodekamp
>
> Using trunk, you are unable to create a new web site.  The result is:
> Bad Request
> Your browser sent a request that this server could not understand.
> Apache/2.2.14 (Ubuntu) Server at demo-trunk.ofbiz.apache.org Port 443

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Closed] (OFBIZ-4437) PostalAddress for Contact in Admin doesn't filter states by country

2011-09-22 Thread Sascha Rodekamp (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sascha Rodekamp closed OFBIZ-4437.
--

   Resolution: Fixed
Fix Version/s: SVN trunk

There was an error in the entitymodel definition for the 
GeoAssocAndGeoToWithState View-Entity.

Fix is in Trunk @Rev1173996

> PostalAddress for Contact in Admin doesn't filter states by country
> ---
>
> Key: OFBIZ-4437
> URL: https://issues.apache.org/jira/browse/OFBIZ-4437
> Project: OFBiz
>  Issue Type: Bug
>  Components: party
>Reporter: Kiran Gawde
>Assignee: Sascha Rodekamp
>Priority: Minor
> Fix For: SVN trunk
>
>
> Create new PostalAddress for Contact via Admin. It shows the "United States" 
> as country but the states list shows all the states. It should filter the 
> list to show US states.
> Also the state list should should update as soon as country changes.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (OFBIZ-4349) commit r1077940 breaks the function to retrieve i18n translation from real entity underlying a view

2011-09-22 Thread Olivier Heintz (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112391#comment-13112391
 ] 

Olivier Heintz commented on OFBIZ-4349:
---

Leon,

Maybe, my explanations was not clear, I try to be more clear. The problem I 
want to solve was not about field name the method search to read the 
international content, but on the pk (name) to retrieve the correct record.

In the method you give, search is doing to check if there is a alias for field 
name to retrieve.
In my patch, I check to have correct pkName.

As exemple, in projectmgr component, there are view name Project with pk 
named projectId not workEffortId  and workeffortName should be renamed 
projectName.
With initiale code (before my first correction), it will be a call to get 
method with name=workEffortName, but search in properties  will fail because 
this.get("workEffortId") return a error "workEffortId is not a field for".

I used this patch for 2 months and I can say that he solve really the problem.

Cheers.

> commit r1077940 breaks the function to retrieve i18n translation from real 
> entity underlying a view
> ---
>
> Key: OFBIZ-4349
> URL: https://issues.apache.org/jira/browse/OFBIZ-4349
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: Leon
> Attachments: OFBIZ-4349.patch
>
>
> in r1077940 changeset 
> ([https://fisheye6.atlassian.com/changelog/ofbiz?cs=1077940]), it gets the pk 
> fiels from view entity instead of previous real entity. I cannot understand 
> what author erwan commented: "When using a view and fields with different 
> names than in the original entity, the model was taking the original names so 
> this could lead to warnings". The consequence of this commit is it cannot 
> retrieve i18n translation from real entity now because the pks of view entity 
> is usually different than that of its base tables.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Closed] (OFBIZ-4436) OnePageCheckout should reuse UpdateCart while first time rendering

2011-09-22 Thread Sascha Rodekamp (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-4436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sascha Rodekamp closed OFBIZ-4436.
--

   Resolution: Fixed
Fix Version/s: SVN trunk
   Release Branch 11.04

Thanks Kiran your patch is in 
Trunk @Rev1173975
11.04 @Rev1173978

> OnePageCheckout should reuse UpdateCart while first time rendering
> --
>
> Key: OFBIZ-4436
> URL: https://issues.apache.org/jira/browse/OFBIZ-4436
> Project: OFBiz
>  Issue Type: Improvement
>  Components: specialpurpose/ecommerce
>Affects Versions: Release Branch 11.04
>Reporter: Kiran Gawde
>Assignee: Sascha Rodekamp
>Priority: Minor
> Fix For: Release Branch 11.04, SVN trunk
>
> Attachments: OFBIZ-4436-OrderScreensXml.patch, 
> OFBIZ-4436-UpdateCartReuse.patch
>
>
> When shipping options or coupon are changed the entire cart is updated by 
> invoking UpdateCart. It returns output of UpdateCart screen. The same screen 
> should be reused during original rendering to avoid code duplication.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira