Re: How to add Invoice sales tax

2009-02-19 Thread Sumit Pandit
Hello Santosh,


Here as per information provided you you, it looking like that 1 entry is 
missing in entity. It is a debit entry for sale tax for $10.

Also entry for #2 is correct, here we can understand it in very simple 
accounting concept. that amount $288 is credited in books against price of 10 
items($270) + shipping changes($5) + other adjustments($3) + sale tax(%10).

In very simple term ACCOUNT PAYABLE is refer to all parties to whom a business 
entity is require to pay against of product or service.

So total amount is credited in system against of all debit entries to balance 
the book in double entry system. 



Thanks And Regards
Sumit Pandit



- "Santosh Malviya"  wrote:

| Hello David,
| I have done following :
| (1)At first I created a purchase order, approved the order, generated
| a 
| shipment, issued items, received items. Then in Accounting I edited 
| purchase invoice by adding new items like adding invoice sales tax and
| 
| invoice shipping and handling. Here I added invoice sales tax(of unit
| 
| price $10) and two invoice shipping and handling(one with the Gl
| Account 
| Id and other without ) with override Gl Account Id = 516100 PURCHASE 
| ORDER ADJUSTMENTS and unit price of both and then I set "status to 
| ready". This generated 4 transaction entries which are follows : 
| 
|  Credit; in account 21 - "ACCOUNTS PAYABLE"; amount: 288$
| 
| (After adding all taxes and shipping charges)   
|  Debit; in account 214000 - "UNINVOICED ITEM RECEIPTS";
| amount: 
| 270$ (Actual price of 10 items of WG-)
|  Debit; in account 51 - "FREIGHT IN"; amount: 5$ (Shipping
| 
| invoice without Gl account Id)
|  Debit; in account 516100 - "PURCHASE ORDER ADJUSTMENTS"; 
| amount: 3$ (Shipping invoice with Gl account Id)
| 
| (2) I was expecting here transaction entry of invoice sales tax while
| 
| its tax was added into total price(ACCOUNTS PAYABLE, amount 288$).
| (3) Only four entries were there as a result of this invoice.
| 
| Thanks and Regards
| Santosh Malviya
| 
| David E Jones wrote:
| >
| > Santosh,
| >
| > I don't understand this question, and I'm not sure if others do 
| > either. For example, what do you mean by "when I add Invoice sales 
| > tax"? Where and how do you add it? Could you please rewrite this 
| > question in terms of:
| >
| > 1. what you did
| > 2. what you expected to happen
| > 3. what actually happened
| >
| > -David
| >
| >
| > On Feb 19, 2009, at 3:07 AM, Santosh Malviya wrote:
| >
| >> Sorry for inconvenience, my question should have been when I add 
| >> Invoice sales tax of unit price say $10 then I am unable to see its
| 
| >> transaction entry while invoice shipping and handling entries are 
| >> there. Where this entry is done. Am I missing something?.
| >> Thanks in advance.
| >>
| >> Thanks & Regards
| >> Santosh Malviya
| >>
| >>
| >> Santosh Malviya wrote:
| >>> Hello all,
| >>> I have done it in my purchase invoice but not able to see it in my
| 
| >>> overall price while my invoice shipping and handling price added 
| >>> successfully.
| >>> Thanks in advance.
| >>>
| >>> Thanks & Regards
| >>> Santosh Malviya
| >>>
| >>
| >
| >

-- 
--
  Thanks and Regards 
  Sumit Pandit 
  Senior Manager, Hotwax Media Inc. 
  +91-9926681124



Re: Add To List is Working only for Virtual

2009-02-19 Thread Kumaraswamy nandipati
As I remember,

If virtual product has configurable goods, you must assign same configurable
goods to Variants also. Then only they will be displayed on shopping cart
otherwise, they won't display in shopping cart. The implementation is like
that for configurable Product page.


For ex:

virtual Product is :WG-1986, You assign configurables A, B to this product.

and variants are WG-1986-BLACK, WG-1986-GREEN, WG-1986-WHITE

In product page all variants and configurable goods will be visible because
you are opened virtual product page.

now, you selected  WG-1986-BLACK,config products A and B(remember these 2
products are associated to virtual product WG-1986 *not to WG-1986-BLACK*)
and entered into shopping cart.

Nos, in shopping cart, the available productId is WG-1986-BLACK. for this
product, there is no configurable goods. So, they won't show up.

To fix this, you need to associate config goods to each and every variant.

I hope you got my point.







On Thu, Feb 19, 2009 at 11:39 PM, David E Jones  wrote:

>
> I don't think there is any magic answer to this, and the only real way to
> find out exactly what is done is to look at the code that handles adding a
> configurable product to a shopping list.
>
> I have not done so, but based on my random memories of the history of this,
> it may be that this is not implemented though I thought it was (for normal
> configurable products at least... for the variant feature tree stuff that
> would fall on whoever implemented it).
>
> If you think this is a bug, or it is functionality you would expect to be
> there based on things you can do in the UI, the best way to communicate
> about this is in terms of:
>
> 1. what did you do (in details, with links, values in form fields, etc)
> 2. what did you expect to happen
> 3. what actually happened
>
> Based on that other people can try it and more easily give feedback and/or
> isolate the problem.
>
> -David
>
>
>
> On Feb 19, 2009, at 1:53 AM, Arpit Singh Pandya wrote:
>
>  Hello David,
>>
>> Thanks for the Reply.
>>
>> I was looking for that too, but this answer is a part of what i am
>> expecting. because I am thinking of a product which is a little bit
>> different from traditional product which we are using in e-commerce (i think
>> so, but may be i am wrong to).
>>
>> the product is such as :-* configure product, associate with virtual
>> product having some optional feature and also follow the
>>
>>  virtualVariantMethodEnum="VV_FEATURETREE".*
>>
>> is this scenario present in OOTB, for such kind of product (i am not able
>> to find) or any body is working on it.
>>
>> Please let me know, if i am thinking wrong or going in wrong direction, is
>> this possible in ofbiz or not.
>>
>> and the main problem is same as explained by Vivek.
>>
>> Thanks & Regards
>> 
>> Arpit Singh Pandya
>>
>>
>> Vivek Mishra wrote:
>>
>>> Thanks for the reply David,
>>>
>>> Here main problem is that how can we add a configurable product in
>>> Shopping List from Product detail page cause configurable product is
>>> created when we submit the order.
>>>
>>> I am trying to do it with feature tree generation technique.
>>>
>>> Kind Regards,
>>> --
>>> Vivek Mishra
>>> David E Jones wrote:
>>>

 Arpit,

 This is a great write-up with lots of detail about your question and
 issue.

 I'm not sure what a good answer is, other than: what you are looking for
 is different than what is currently implemented so some changes are needed
 to make it work that way.

 Is that the sort of feedback you were looking for? If not, please feel
 free to follow-up with additional questions.

 -David


 On Feb 17, 2009, at 6:14 AM, Arpit Singh Pandya wrote:

  Hello Jacques, All ,
> Thanks for your Suggestion. I just go through explanations of feature
> explosion mechanism. its really very helpful to me.
>
> as we see shopping list behavior  from two different page
> 1 from product detail page
> 2 from show cart page (after add to cart).
>
> But I am still confused about the different behavior of wish list from
> different page, but IMO it should work same from both place then it will 
> be
> more significant. Here is the steps that i follow
>
> 1. Login with admin and ofbiz
> 2. Product detail page select all the feature for the product *WG-9943*
>  color:- Black ,  Size : - 4 Wheel
> 3 and then click to "*Add to shopping list *"  ,
>
> then in shopping(wish) list page, it Shows the Virtual Product WG-9943
> with out feature which I selected from product detail page,
> where IMO it should show  *WG-9943-B4*
>
> Wish List also shows the link in the last column with the drop down
> which contains all variants of that product (as they are available as
> Finished Goods in data base ). and we can *Replace with available  
> variant.*
>
> Then some doubts as
> 1.What

Re: How to add Invoice sales tax

2009-02-19 Thread David E Jones


It sounds like you've now got a definition of what is happening that  
someone could actually look into.


Are you interested in looking into this more? If so, one thing that is  
interesting about this that might be a place to look is that you  
mentioned manually adding tax and shipping, but only shipping made it  
through (if I understand right what you wrote... I'm not totally sure  
because there is no mention of the data you entered so I couldn't  
match it up to compare)... so something is wrong with the tax invoice  
item.


Some things that come to mind as possibilities to pursue:

1. are there any errors in the log?
2. is there some configuration missing for that InvoiceItemType?
3. is there an issue with the code, perhaps that handles the override  
glAccountId? what happens if you don't specify an override account?


-David


On Feb 19, 2009, at 11:23 PM, Santosh Malviya wrote:


Hello David,
I have done following :
(1)At first I created a purchase order, approved the order,  
generated a shipment, issued items, received items. Then in  
Accounting I edited purchase invoice by adding new items like adding  
invoice sales tax and invoice shipping and handling. Here I added  
invoice sales tax(of unit price $10) and two invoice shipping and  
handling(one with the Gl Account Id and other without ) with  
override Gl Account Id = 516100 PURCHASE ORDER ADJUSTMENTS and unit  
price of both and then I set "status to ready". This generated 4  
transaction entries which are follows :
   Credit; in account 21 - "ACCOUNTS PAYABLE"; amount: 288$  
(After adding all taxes and shipping charges)   Debit;  
in account 214000 - "UNINVOICED ITEM RECEIPTS"; amount: 270$ (Actual  
price of 10 items of WG-)
   Debit; in account 51 - "FREIGHT IN"; amount: 5$ (Shipping  
invoice without Gl account Id)
   Debit; in account 516100 - "PURCHASE ORDER ADJUSTMENTS";  
amount: 3$ (Shipping invoice with Gl account Id)


(2) I was expecting here transaction entry of invoice sales tax  
while its tax was added into total price(ACCOUNTS PAYABLE, amount  
288$).

(3) Only four entries were there as a result of this invoice.

Thanks and Regards
Santosh Malviya

David E Jones wrote:


Santosh,

I don't understand this question, and I'm not sure if others do  
either. For example, what do you mean by "when I add Invoice sales  
tax"? Where and how do you add it? Could you please rewrite this  
question in terms of:


1. what you did
2. what you expected to happen
3. what actually happened

-David


On Feb 19, 2009, at 3:07 AM, Santosh Malviya wrote:

Sorry for inconvenience, my question should have been when I add  
Invoice sales tax of unit price say $10 then I am unable to see  
its transaction entry while invoice shipping and handling entries  
are there. Where this entry is done. Am I missing something?.

Thanks in advance.

Thanks & Regards
Santosh Malviya


Santosh Malviya wrote:

Hello all,
I have done it in my purchase invoice but not able to see it in  
my overall price while my invoice shipping and handling price  
added successfully.

Thanks in advance.

Thanks & Regards
Santosh Malviya












Re: How to add Invoice sales tax

2009-02-19 Thread Santosh Malviya

Hello David,
I have done following :
(1)At first I created a purchase order, approved the order, generated a 
shipment, issued items, received items. Then in Accounting I edited 
purchase invoice by adding new items like adding invoice sales tax and 
invoice shipping and handling. Here I added invoice sales tax(of unit 
price $10) and two invoice shipping and handling(one with the Gl Account 
Id and other without ) with override Gl Account Id = 516100 PURCHASE 
ORDER ADJUSTMENTS and unit price of both and then I set "status to 
ready". This generated 4 transaction entries which are follows : 

Credit; in account 21 - "ACCOUNTS PAYABLE"; amount: 288$ 
(After adding all taxes and shipping charges)   
Debit; in account 214000 - "UNINVOICED ITEM RECEIPTS"; amount: 
270$ (Actual price of 10 items of WG-)
Debit; in account 51 - "FREIGHT IN"; amount: 5$ (Shipping 
invoice without Gl account Id)
Debit; in account 516100 - "PURCHASE ORDER ADJUSTMENTS"; 
amount: 3$ (Shipping invoice with Gl account Id)


(2) I was expecting here transaction entry of invoice sales tax while 
its tax was added into total price(ACCOUNTS PAYABLE, amount 288$).

(3) Only four entries were there as a result of this invoice.

Thanks and Regards
Santosh Malviya

David E Jones wrote:


Santosh,

I don't understand this question, and I'm not sure if others do 
either. For example, what do you mean by "when I add Invoice sales 
tax"? Where and how do you add it? Could you please rewrite this 
question in terms of:


1. what you did
2. what you expected to happen
3. what actually happened

-David


On Feb 19, 2009, at 3:07 AM, Santosh Malviya wrote:

Sorry for inconvenience, my question should have been when I add 
Invoice sales tax of unit price say $10 then I am unable to see its 
transaction entry while invoice shipping and handling entries are 
there. Where this entry is done. Am I missing something?.

Thanks in advance.

Thanks & Regards
Santosh Malviya


Santosh Malviya wrote:

Hello all,
I have done it in my purchase invoice but not able to see it in my 
overall price while my invoice shipping and handling price added 
successfully.

Thanks in advance.

Thanks & Regards
Santosh Malviya










smime.p7s
Description: S/MIME Cryptographic Signature


Re: Tricky! About fields in the form

2009-02-19 Thread David E Jones



If you want something that adds fields to a Form Widget form based on
data in the database that would have to be written as it currently
only feeds from the form definition XML files. That wouldn't be too
hard to do (ie add functionality to add fields based on the database).
We decided early on that we wanted these things configured from XML
files instead of being more database driven (like Compiere and certain
other frameworks are) because it is easier to revision control and
manage in a large-scale environment (especially for updates and
collaboration when multiple people are working on the applications).

So yes, it could certainly be developed as an extension to the current
Form Widget, but does not exist now.


-David


On Feb 19, 2009, at 8:18 PM, Jack Liu wrote:


I know how to define an entity and an enumeration in OFBiz.
I also know how to use them in OFBiz:


   
   description="${description}" key-field-name="enumId">
   operator="equals" value="TAX_FORMS"/>

   
   
   

name="enumId"/>



But what I want to do is not to view them.
Exactly speaking, what I want to do is how to make these attributes  
turn into fields in the form automatically through OFBiz.


Your examples just show how to view them.


-Original Message-
From: BJ Freeman [mailto:bjf...@free-man.net]
Sent: 2009年2月19日 19:04
To: user@ofbiz.apache.org
Subject: Re: Tricky! About fields in the form

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

how you define an entity is in
framework\entity\dtd\entitymodel.xsd
and is like I gave you an example previous.
tables are entity names (well almost)
and columns are field names.
your attribute would be an Enumeration
your type would be EnumerationType.
you would use a view-entity to see all this in one row.
using the webtool import you would
1) load the EnumerationType
https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=EnumerationType&find=true&VIEW_SIZE=50&VIEW_INDEX=0
2) load the Enumeration with what you attributes
https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=Enumeration&find=true&VIEW_SIZE=50&VIEW_INDEX=0
you can find data entity and form examples by doing a search on the
application folders for Enumeration

Jack Liu sent the following on 2/19/2009 2:24 AM:

If I want it through xml file, then how should I do?

The xml file maybe seems like this:







While in form, we can get all the attributes of type A.










-Original Message-
From: David E Jones [mailto:david.jo...@hotwaxmedia.com]
Sent: 2009年2月18日 2:28
To: user@ofbiz.apache.org
Subject: Re: Tricky! About fields in the form


Jack,

I suggested configuring these through entity fields instead of in the
database because that is what is supported right now.

If you want something that adds fields to a Form Widget form based on
data in the database that would have to be written as it currently
only feeds from the form definition XML files. That wouldn't be too
hard to do (ie add functionality to add fields based on the  
database).

We decided early on that we wanted these things configured from XML
files instead of being more database driven (like Compiere and  
certain

other frameworks are) because it is easier to revision control and
manage in a large-scale environment (especially for updates and
collaboration when multiple people are working on the applications).

So yes, it could certainly be developed as an extension to the  
current

Form Widget, but does not exist now.

-David


On Feb 17, 2009, at 6:46 AM, Jack Liu wrote:


Are you sure what I want and you have a good solution?
Again:
What I want is not drop-down list

In table attributetype:
Id attributetype
1  ChUrl A
2  SupportedCharsets A
3  ServerID  A
4  ServerID  B


While in form, we can get all the attributes of type A.










Three fields ChlUrl, SupportedCharsets, ServerID are all fetched
from table, not written by hand. Of course, the form maybe looks
different, but can reach the same effect as above.

Are you sure you can do it? If you can do it, money is not a
problem, I think.

-Original Message-
From: BJ Freeman [mailto:bjf...@free-man.net]
Sent: 2009年2月17日 21:20
To: user@ofbiz.apache.org
Subject: Re: Tricky! About fields in the form


On the list I point people to places they can learn.
however if you want personal help I will be glad to consult with you
for
a fee.

Jack Liu sent the following on 2/17/2009 5:13 AM:

Could you give me an example in OFBiz?
I think it's very easy for you to find an example?


-Original Message-
From: BJ Freeman [mailto:bjf...@free-man.net]
Sent: 2009t217

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.

Re: Tricky! About fields in the form

2009-02-19 Thread David E Jones


In general please understand that this is a community-driven mailing  
list, just a conversation among those who use or are interested in  
using OFBiz. Anyone can respond with anything they want.


If you want to know who really drives OFBiz and is more closely  
involved, the information is available here:


http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+PMC+Members+and+Committers

Of course, there are lots of people not listed on that page that  
contribute code (search Jira submissions for those), and who help out  
on the mailing lists.


-David


On Feb 19, 2009, at 10:41 PM, Jack Liu wrote:


Thank you for your patience!
I must admit that I have some difficulty to express this question.
Actually David's answers are totally different from yours.

-Original Message-
From: BJ Freeman [mailto:bjf...@free-man.net]
Sent: 2009年2月20日 13:28
To: user@ofbiz.apache.org
Subject: Re: Tricky! About fields in the form

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

this was your first post.
this is what I have been trying to answer
it seems ever-time I answer you change directions and or requirements.
this does not show you understood ofbiz.
at this point I bow out.


Jack Liu sent the following on 2/16/2009 5:29 PM:

Hi, All
In my project, there are many protocols to set up.
For every protocol, it has many attributes.
All these protocols have been divided into several types according to
their usage.

For example
A type has attributes: ChlUrl, SupportedCharsets, ServerID
B type has attributes: InClientPull
C type has attributes: ChlUrl, SMRCustomerType, GMDChargingCurrency,
SupportedCharsets, ServerID


























When setting up a protocol in a web page, first choose a type from
drop-down list, the web page show attributes relating to its type.
After filling in the attributes' value, submit the form and save all
these attribute-value pairs in the table protocolAttribute below.

services.xml







   


Tables:
protocol: protocolid, protocolName.
protocolAttribute: id, protocolid, attribute, value.


With the progress of technology, the number of every protocol's
attributes is increasing.
So we need to modify the forms in the screens to add new fields and
services.xml file to add mode IN attributes, and java code to save  
newly

added attribute-value pairs.
Can OFBiz have solutions to deal with the CHANGE and When adding an
attribute, we needn't modify the form, services.xml and java source
code?




Best Regards,

Jack Liu



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJnj9DrP3NbaWWqE4RAr4FAKDDyVBSeyPZBilW5jLkd/UZ6BlzigCgg8ok
w0oqq2j55zS4Fc8ftciYRB8=
=no5+
-END PGP SIGNATURE-




RE: Tricky! About fields in the form

2009-02-19 Thread Jack Liu
Thank you for your patience!
I must admit that I have some difficulty to express this question.
Actually David's answers are totally different from yours.

-Original Message-
From: BJ Freeman [mailto:bjf...@free-man.net] 
Sent: 2009年2月20日 13:28
To: user@ofbiz.apache.org
Subject: Re: Tricky! About fields in the form

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

this was your first post.
this is what I have been trying to answer
it seems ever-time I answer you change directions and or requirements.
this does not show you understood ofbiz.
at this point I bow out.


Jack Liu sent the following on 2/16/2009 5:29 PM:
> Hi, All
> In my project, there are many protocols to set up.
> For every protocol, it has many attributes. 
> All these protocols have been divided into several types according to
> their usage.
> 
> For example
> A type has attributes: ChlUrl, SupportedCharsets, ServerID
> B type has attributes: InClientPull
> C type has attributes: ChlUrl, SMRCustomerType, GMDChargingCurrency,
> SupportedCharsets, ServerID
> 
>target="createProtocolAttribute?protocolid=${id}">
>   
>   
>   
>   
>   
>   
>   
>target="createProtocolAttribute?protocolid=${id}">
>   
>   
>   
>   
>   
>target="createProtocolAttribute?protocolid=${id}">
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> When setting up a protocol in a web page, first choose a type from
> drop-down list, the web page show attributes relating to its type.
> After filling in the attributes' value, submit the form and save all
> these attribute-value pairs in the table protocolAttribute below.
> 
> services.xml
>location="com.xian.cmb.CmbServices" invoke="createProtocolAttribute">
>optional="true" />
>type="String" optional="true" />
>optional="true" />
>optional="true" />
>type="String" optional="true" />
>type="String" optional="true" />
> 
> 
> 
> Tables:
> protocol: protocolid, protocolName.
> protocolAttribute: id, protocolid, attribute, value.
> 
> 
> With the progress of technology, the number of every protocol's
> attributes is increasing.
> So we need to modify the forms in the screens to add new fields and
> services.xml file to add mode IN attributes, and java code to save newly
> added attribute-value pairs. 
> Can OFBiz have solutions to deal with the CHANGE and When adding an
> attribute, we needn't modify the form, services.xml and java source
> code?
> 
> 
> 
> 
> Best Regards,
> 
> Jack Liu 
> 
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJnj9DrP3NbaWWqE4RAr4FAKDDyVBSeyPZBilW5jLkd/UZ6BlzigCgg8ok
w0oqq2j55zS4Fc8ftciYRB8=
=no5+
-END PGP SIGNATURE-


Re: Tricky! About fields in the form

2009-02-19 Thread BJ Freeman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

this was your first post.
this is what I have been trying to answer
it seems ever-time I answer you change directions and or requirements.
this does not show you understood ofbiz.
at this point I bow out.


Jack Liu sent the following on 2/16/2009 5:29 PM:
> Hi, All
> In my project, there are many protocols to set up.
> For every protocol, it has many attributes. 
> All these protocols have been divided into several types according to
> their usage.
> 
> For example
> A type has attributes: ChlUrl, SupportedCharsets, ServerID
> B type has attributes: InClientPull
> C type has attributes: ChlUrl, SMRCustomerType, GMDChargingCurrency,
> SupportedCharsets, ServerID
> 
>target="createProtocolAttribute?protocolid=${id}">
>   
>   
>   
>   
>   
>   
>   
>target="createProtocolAttribute?protocolid=${id}">
>   
>   
>   
>   
>   
>target="createProtocolAttribute?protocolid=${id}">
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> When setting up a protocol in a web page, first choose a type from
> drop-down list, the web page show attributes relating to its type.
> After filling in the attributes' value, submit the form and save all
> these attribute-value pairs in the table protocolAttribute below.
> 
> services.xml
>location="com.xian.cmb.CmbServices" invoke="createProtocolAttribute">
>optional="true" />
>type="String" optional="true" />
>optional="true" />
>optional="true" />
>type="String" optional="true" />
>type="String" optional="true" />
> 
> 
> 
> Tables:
> protocol: protocolid, protocolName.
> protocolAttribute: id, protocolid, attribute, value.
> 
> 
> With the progress of technology, the number of every protocol's
> attributes is increasing.
> So we need to modify the forms in the screens to add new fields and
> services.xml file to add mode IN attributes, and java code to save newly
> added attribute-value pairs. 
> Can OFBiz have solutions to deal with the CHANGE and When adding an
> attribute, we needn't modify the form, services.xml and java source
> code?
> 
> 
> 
> 
> Best Regards,
> 
> Jack Liu 
> 
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJnj9DrP3NbaWWqE4RAr4FAKDDyVBSeyPZBilW5jLkd/UZ6BlzigCgg8ok
w0oqq2j55zS4Fc8ftciYRB8=
=no5+
-END PGP SIGNATURE-


Re: Catalog

2009-02-19 Thread Ashish Nagar
Could you tell what entries you have added in DemoProduct.xml.Had you 
done association between the needful entities ? Refer to DemoProduct.xml 
& tell where are you getting problem.


Regards:
--
Ashish Nagar

vishnupr...@x-minds.info wrote:

Hi,
  I have added some products in the product table and now I want to
display that product in the e-commerce application.I have edited the
demoProduct.xml file.
  But it is not displaying there.Do I make any further modification in
other xml or any file for displaying that product.I added the
product using createProduct service provided inside ofbiz.
with thanks and regards
vishnupriya

  




Re: Catalog

2009-02-19 Thread Kumaraswamy nandipati
For reference purpose you can check

*/applications/ecommerce/data/DemoProduct.xml* file

On Fri, Feb 20, 2009 at 10:29 AM, Kumaraswamy nandipati <
kumarasw...@ecomzera.com> wrote:

> "createProduct" is not enough to display the product in e-commerce
> application.
>
> You need to create the InventoryItem, ProductPrices also. Then do associate
> this product to the category where you want this product to display. Then
> only it will visible.
>
>
>
> --
> Thanks,
> Kumaraswamy.N
> 91-9866805250.
>
>
> On Fri, Feb 20, 2009 at 10:12 AM,  wrote:
>
>> Hi,
>>  I have added some products in the product table and now I want to
>> display that product in the e-commerce application.I have edited the
>> demoProduct.xml file.
>>  But it is not displaying there.Do I make any further modification in
>> other xml or any file for displaying that product.I added the
>> product using createProduct service provided inside ofbiz.
>> with thanks and regards
>> vishnupriya
>>
>>
>
>
>
>


-- 
Thanks,
Kumaraswamy.N
91-9866805250.


Re: Catalog

2009-02-19 Thread Pranay Pandey

Hello Vishnupriya,

Adding just a product to DemoProduct.xml will not serve the purpose.  
You will have to understand the flow or the process of adding a new  
product in the catalog, means understanding with catalog manager.
Understand the presence of product on ecommerce application with  
catalog manager. Refer the existing products and trace them.

For this you can refer following: http://docs.ofbiz.org/display/OFBIZ/CATALOG

Thanks & Regards
--
Pranay Pandey

On Feb 20, 2009, at 10:12 AM, vishnupr...@x-minds.info wrote:


Hi,
 I have added some products in the product table and now I want to
display that product in the e-commerce application.I have edited the
demoProduct.xml file.
 But it is not displaying there.Do I make any further  
modification in

other xml or any file for displaying that product.I added the
product using createProduct service provided inside ofbiz.
with thanks and regards
vishnupriya





smime.p7s
Description: S/MIME cryptographic signature


Re: Catalog

2009-02-19 Thread Kumaraswamy nandipati
"createProduct" is not enough to display the product in e-commerce
application.

You need to create the InventoryItem, ProductPrices also. Then do associate
this product to the category where you want this product to display. Then
only it will visible.



-- 
Thanks,
Kumaraswamy.N
91-9866805250.

On Fri, Feb 20, 2009 at 10:12 AM,  wrote:

> Hi,
>  I have added some products in the product table and now I want to
> display that product in the e-commerce application.I have edited the
> demoProduct.xml file.
>  But it is not displaying there.Do I make any further modification in
> other xml or any file for displaying that product.I added the
> product using createProduct service provided inside ofbiz.
> with thanks and regards
> vishnupriya
>
>


Catalog

2009-02-19 Thread vishnupriya
Hi,
  I have added some products in the product table and now I want to
display that product in the e-commerce application.I have edited the
demoProduct.xml file.
  But it is not displaying there.Do I make any further modification in
other xml or any file for displaying that product.I added the
product using createProduct service provided inside ofbiz.
with thanks and regards
vishnupriya



RE: Tricky! About fields in the form

2009-02-19 Thread Jack Liu
I know how to define an entity and an enumeration in OFBiz.
I also know how to use them in OFBiz:












But what I want to do is not to view them.
Exactly speaking, what I want to do is how to make these attributes turn into 
fields in the form automatically through OFBiz.

Your examples just show how to view them.


-Original Message-
From: BJ Freeman [mailto:bjf...@free-man.net] 
Sent: 2009年2月19日 19:04
To: user@ofbiz.apache.org
Subject: Re: Tricky! About fields in the form

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

how you define an entity is in
framework\entity\dtd\entitymodel.xsd
and is like I gave you an example previous.
tables are entity names (well almost)
and columns are field names.
your attribute would be an Enumeration
your type would be EnumerationType.
you would use a view-entity to see all this in one row.
using the webtool import you would
1) load the EnumerationType
https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=EnumerationType&find=true&VIEW_SIZE=50&VIEW_INDEX=0
2) load the Enumeration with what you attributes
https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=Enumeration&find=true&VIEW_SIZE=50&VIEW_INDEX=0
you can find data entity and form examples by doing a search on the
application folders for Enumeration

Jack Liu sent the following on 2/19/2009 2:24 AM:
> If I want it through xml file, then how should I do?
> 
> The xml file maybe seems like this:
> 
>   
>   
>   
>   
> 
> 
> While in form, we can get all the attributes of type A.
> 
> target="createProtocolAttribute?protocolid=${id}">
>   
>   
>   
>   
>   
>   
> 
> 
> -Original Message-
> From: David E Jones [mailto:david.jo...@hotwaxmedia.com] 
> Sent: 2009年2月18日 2:28
> To: user@ofbiz.apache.org
> Subject: Re: Tricky! About fields in the form
> 
> 
> Jack,
> 
> I suggested configuring these through entity fields instead of in the  
> database because that is what is supported right now.
> 
> If you want something that adds fields to a Form Widget form based on  
> data in the database that would have to be written as it currently  
> only feeds from the form definition XML files. That wouldn't be too  
> hard to do (ie add functionality to add fields based on the database).  
> We decided early on that we wanted these things configured from XML  
> files instead of being more database driven (like Compiere and certain  
> other frameworks are) because it is easier to revision control and  
> manage in a large-scale environment (especially for updates and  
> collaboration when multiple people are working on the applications).
> 
> So yes, it could certainly be developed as an extension to the current  
> Form Widget, but does not exist now.
> 
> -David
> 
> 
> On Feb 17, 2009, at 6:46 AM, Jack Liu wrote:
> 
>> Are you sure what I want and you have a good solution?
>> Again:
>> What I want is not drop-down list
>>
>> In table attributetype:
>> Id attributetype
>> 1  ChUrl A
>> 2  SupportedCharsets A
>> 3  ServerID  A
>> 4  ServerID  B
>>
>>
>> While in form, we can get all the attributes of type A.
>>
>> >  target="createProtocolAttribute?protocolid=${id}">
>>  
>>  
>>  
>>  
>>  
>>  
>> 
>>
>> Three fields ChlUrl, SupportedCharsets, ServerID are all fetched  
>> from table, not written by hand. Of course, the form maybe looks  
>> different, but can reach the same effect as above.
>>
>> Are you sure you can do it? If you can do it, money is not a  
>> problem, I think.
>>
>> -Original Message-
>> From: BJ Freeman [mailto:bjf...@free-man.net]
>> Sent: 2009年2月17日 21:20
>> To: user@ofbiz.apache.org
>> Subject: Re: Tricky! About fields in the form
>>
> On the list I point people to places they can learn.
> however if you want personal help I will be glad to consult with you  
> for
> a fee.
> 
> Jack Liu sent the following on 2/17/2009 5:13 AM:
 Could you give me an example in OFBiz?
 I think it's very easy for you to find an example?


 -Original Message-
 From: BJ Freeman [mailto:bjf...@free-man.net]
 Sent: 2009t217
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJnTyhrP3NbaWWqE4RAuyhAJ94+Qx/5PuzZGvlvaQfJciaxaVAxgCgir++
es56A7pXTtOEi+3kKidfxTw=
=Heja
-END PGP SIGNATURE-


Re: average cost calculation in price rule

2009-02-19 Thread BJ Freeman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

for clarification
custom pricing can be done per product but selecting a service to do this
https://demo.hotwaxmedia.com/catalog/control/EditProductPrices?productId=WG-5569
see Custom Price Calc Service

see
http://docs.ofbiz.org/display/OFBENDUSER/Price+Rules

Hansen Wang sent the following on 2/19/2009 3:37 PM:
> It just meant the profit margin for the category where the specific product
> belongs to. For example, we can setup 3 categories LOW_MARGIN,
> MEDIUM_MARGIN, HIGH_MARGIN. For each of this category, there will be a price
> rule that sets the corresponding profit margin such as 20%, 50%, 100%.
> 
> I was reading the related source codes after I posted the questions and
> these are what I have found:
> 
> 1. Yes. If average_cost is not set, it uses list_price.
> 2. Yes. The nightly job can get the unit cost of the inventory items and
> calculate the proper cost for the product. If the cost involves other costs,
> we can also use the CostComponent for this purpose.
> 
> We will be able to implement the price structure based on cost and category
> profit margin using price rules. Only thing extra is to calculate the
> average cost of a product which I thought was built into the system. But I
> think "average cost" itself can mean very differently for different
> business. That might be why it was not there.
> 
> Please correct me if I am wrong. Thanks.
> 
> On Thu, Feb 19, 2009 at 2:44 PM, Vince M. Clark wrote:
> 
>> I do not understand this part:
>> "profit margin based on related categories of this product"
>>
>> - Original Message -
>> From: "Hansen Wang" 
>> To: user@ofbiz.apache.org
>> Sent: Thursday, February 19, 2009 1:47:15 PM (GMT-0600) America/Chicago
>> Subject: Re: average cost calculation in price rule
>>
>> Or is that right, that the "average cost" from price rule action means the
>> "average cost" price of the product which is set explicitly from the prices
>> tab of a product?
>>
>> Secondly, does it sound reasonable solution that we use a nightly job to
>> update the "average cost" price of the product using the inventory costs of
>> all the inventory items for this product?
>>
>> What we really want is a price structure based on the average cost of based
>> on inventory items for a product and a profit margin based on related
>> categories of this product.
>>
>> On Thu, Feb 19, 2009 at 10:27 AM, Hansen Wang  wrote:
>>
>>> I have a product whose list price and default price are both set to 5.
>>> These are the only explicit prices set for this product. There is also no
>>> cost component set for this product. This product has only one inventory
>>> item whose cost is 3. I set up a price rule for this product to add 30%
>> of
>>> average cost to the list price. When I try to add one of this product in
>> the
>>> cart, the price is shown 6.5, instead of 5.9. The reason is that the
>> price
>>> rule use the list price as the average cost. Is there any way (out of
>> box)
>>> the price rule will use inventory cost?
>>>
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJnfThrP3NbaWWqE4RAlENAKClyBPzEOUK6eBcfxa9nOWoxYlEyQCgka1H
BeUR1eCclLmLoJs0LAVFDXc=
=teJP
-END PGP SIGNATURE-


Re: average cost calculation in price rule

2009-02-19 Thread Hansen Wang
It just meant the profit margin for the category where the specific product
belongs to. For example, we can setup 3 categories LOW_MARGIN,
MEDIUM_MARGIN, HIGH_MARGIN. For each of this category, there will be a price
rule that sets the corresponding profit margin such as 20%, 50%, 100%.

I was reading the related source codes after I posted the questions and
these are what I have found:

1. Yes. If average_cost is not set, it uses list_price.
2. Yes. The nightly job can get the unit cost of the inventory items and
calculate the proper cost for the product. If the cost involves other costs,
we can also use the CostComponent for this purpose.

We will be able to implement the price structure based on cost and category
profit margin using price rules. Only thing extra is to calculate the
average cost of a product which I thought was built into the system. But I
think "average cost" itself can mean very differently for different
business. That might be why it was not there.

Please correct me if I am wrong. Thanks.

On Thu, Feb 19, 2009 at 2:44 PM, Vince M. Clark wrote:

> I do not understand this part:
> "profit margin based on related categories of this product"
>
> - Original Message -
> From: "Hansen Wang" 
> To: user@ofbiz.apache.org
> Sent: Thursday, February 19, 2009 1:47:15 PM (GMT-0600) America/Chicago
> Subject: Re: average cost calculation in price rule
>
> Or is that right, that the "average cost" from price rule action means the
> "average cost" price of the product which is set explicitly from the prices
> tab of a product?
>
> Secondly, does it sound reasonable solution that we use a nightly job to
> update the "average cost" price of the product using the inventory costs of
> all the inventory items for this product?
>
> What we really want is a price structure based on the average cost of based
> on inventory items for a product and a profit margin based on related
> categories of this product.
>
> On Thu, Feb 19, 2009 at 10:27 AM, Hansen Wang  wrote:
>
> > I have a product whose list price and default price are both set to 5.
> > These are the only explicit prices set for this product. There is also no
> > cost component set for this product. This product has only one inventory
> > item whose cost is 3. I set up a price rule for this product to add 30%
> of
> > average cost to the list price. When I try to add one of this product in
> the
> > cart, the price is shown 6.5, instead of 5.9. The reason is that the
> price
> > rule use the list price as the average cost. Is there any way (out of
> box)
> > the price rule will use inventory cost?
> >
>


Re: average cost calculation in price rule

2009-02-19 Thread Vince M. Clark
I do not understand this part: 
"profit margin based on related categories of this product" 

- Original Message - 
From: "Hansen Wang"  
To: user@ofbiz.apache.org 
Sent: Thursday, February 19, 2009 1:47:15 PM (GMT-0600) America/Chicago 
Subject: Re: average cost calculation in price rule 

Or is that right, that the "average cost" from price rule action means the 
"average cost" price of the product which is set explicitly from the prices 
tab of a product? 

Secondly, does it sound reasonable solution that we use a nightly job to 
update the "average cost" price of the product using the inventory costs of 
all the inventory items for this product? 

What we really want is a price structure based on the average cost of based 
on inventory items for a product and a profit margin based on related 
categories of this product. 

On Thu, Feb 19, 2009 at 10:27 AM, Hansen Wang  wrote: 

> I have a product whose list price and default price are both set to 5. 
> These are the only explicit prices set for this product. There is also no 
> cost component set for this product. This product has only one inventory 
> item whose cost is 3. I set up a price rule for this product to add 30% of 
> average cost to the list price. When I try to add one of this product in the 
> cart, the price is shown 6.5, instead of 5.9. The reason is that the price 
> rule use the list price as the average cost. Is there any way (out of box) 
> the price rule will use inventory cost? 
> 


Re: %PDF-

2009-02-19 Thread BJ Freeman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

sorry thought scott might follow up.
the problem is when the error happens it does not handle the situation
to report back to the user and abort the process
Error rendering included template at location
[component://common/webcommon/includes/reportTemplate.fo.ftl]:
so a pfd never gets generated.
best I can do without tracing the code

Heidi Dehaes sent the following on 2/19/2009 3:25 AM:
> Hello,
> 
> Has anyone had this problem already once ?
> 
> regards,
> heidi
> 
> 2009/2/18 Heidi Dehaes 
> 
>> Here is the log.
>> It is quite long !
>>
>> regards,
>> Heidi
>>
>>
>> 2009-02-18 23:49:00,827 (http-0.0.0.0-8443-Processor4) [
>> ModelScreen.java:137:ERROR] Error rendering screen
>> [component://common/widget/CommonScreens.xml#FoReportDecorator]:
>> java.lang.RuntimeException: Error rendering included template at location
>> [component://common/webcommon/includes/reportTemplate.fo.ftl]:
>> freemarker.template.TemplateModelException: Method public java.lang.String
>> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(java.lang.String)
>> throws org.ofbiz.base.util.GeneralException threw an exception when invoked
>> on org.ofbiz.widget.screen.modelscreenwidget$sectionsrende...@f1f2cc.rolling 
>> back transaction.
>> 2009-02-18 23:49:00,839 (http-0.0.0.0-8443-Processor4) [
>> TransactionUtil.java:295:INFO ] [TransactionUtil.setRollbackOnly]
>> transaction rollback only not set, rollback only is already set.
>> 2009-02-18 23:49:00,841 (http-0.0.0.0-8443-Processor4) [
>> ModelScreen.java:148:ERROR] Error rendering screen
>> [component://order/widget/ordermgr/OrderPrintForms.xml#OrderPDF]:
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://common/widget/CommonScreens.xml#FoReportDecorator]:
>> java.lang.RuntimeException: Error rendering included template at location
>> [component://common/webcommon/includes/reportTemplate.fo.ftl]:
>> freemarker.template.TemplateModelException: Method public java.lang.String
>> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(java.lang.String)
>> throws org.ofbiz.base.util.GeneralException threw an exception when invoked
>> on org.ofbiz.widget.screen.modelscreenwidget$sectionsrende...@f1f2cc(Error 
>> rendering included template at location
>> [component://common/webcommon/includes/reportTemplate.fo.ftl]:
>> freemarker.template.TemplateModelException: Method public java.lang.String
>> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(java.lang.String)
>> throws org.ofbiz.base.util.GeneralException threw an exception when invoked
>> on org.ofbiz.widget.screen.modelscreenwidget$sectionsrende...@f1f2cc).
>> Rolling back transaction.
>> 2009-02-18 23:49:00,847 (http-0.0.0.0-8443-Processor4) [
>> TransactionUtil.java:255:ERROR]  exception report
>> --
>> [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack
>> Trace  stack trace
>> ---
>> java.lang.Exception: Stack Trace
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:151)
>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105)
>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90)
>> org.ofbiz.widget.screen.ScreenFopViewHandler.render(ScreenFopViewHandler.java:67)
>> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643)
>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> org.apach

Re: Drop Shipping

2009-02-19 Thread BJ Freeman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

also you can goto
http://docs.ofbiz.org/dashboard.action
and do a search

BJ Freeman sent the following on 2/19/2009 12:08 PM:
> https://demo.hotwaxmedia.com/catalog/control/EditCategory?productCategoryId=dropShip
> 
> murp3433 sent the following on 2/19/2009 11:59 AM:
>> Sorry i meant Supplier to Customer
> 
> 
> 
>> murp3433 wrote:
>>> Does anyone have any best practices on how to handle drop shipping
>>> products from a supplier to a vendor?
>>>
>>> Thanks.
>>>
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJnb4prP3NbaWWqE4RAicpAJwNQRqHIMDuUkzAOZ4+mRs8PT5FrACgsHR8
uM5U0qYjYvSIw3GqezP28wY=
=obBe
-END PGP SIGNATURE-


Re: Drop Shipping

2009-02-19 Thread BJ Freeman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

https://demo.hotwaxmedia.com/catalog/control/EditCategory?productCategoryId=dropShip

murp3433 sent the following on 2/19/2009 11:59 AM:
> Sorry i meant Supplier to Customer
> 
> 
> 
> murp3433 wrote:
>> Does anyone have any best practices on how to handle drop shipping
>> products from a supplier to a vendor?
>>
>> Thanks.
>>
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJnbwkrP3NbaWWqE4RApfzAJ9r2/l5T+5+WkDcxRs+1HZLVIQTCgCbBQud
mHoVgdJ9dIXZemB+JaQYSMg=
=m39u
-END PGP SIGNATURE-


Re: Drop Shipping

2009-02-19 Thread murp3433

Sorry i meant Supplier to Customer



murp3433 wrote:
> 
> Does anyone have any best practices on how to handle drop shipping
> products from a supplier to a vendor?
> 
> Thanks.
> 

-- 
View this message in context: 
http://www.nabble.com/Drop-Shipping-tp22106504p22108527.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: average cost calculation in price rule

2009-02-19 Thread Hansen Wang
Or is that right, that the "average cost" from price rule action means the
"average cost" price of the product which is set explicitly from the prices
tab of a product?

Secondly, does it sound reasonable solution that we use a nightly job to
update the "average cost" price of the product using the inventory costs of
all the inventory items for this product?

What we really want is a price structure based on the average cost of based
on inventory items for a product and a profit margin based on related
categories of this product.

On Thu, Feb 19, 2009 at 10:27 AM, Hansen Wang  wrote:

> I have a product whose list price and default price are both set to 5.
> These are the only explicit prices set for this product. There is also no
> cost component set for this product. This product has only one inventory
> item whose cost is 3. I set up a price rule for this product to add 30% of
> average cost to the list price. When I try to add one of this product in the
> cart, the price is shown 6.5, instead of 5.9. The reason is that the price
> rule use the list price as the average cost. Is there any way (out of box)
> the price rule will use inventory cost?
>


Re: Add To List is Working only for Virtual

2009-02-19 Thread David E Jones


I don't think there is any magic answer to this, and the only real way  
to find out exactly what is done is to look at the code that handles  
adding a configurable product to a shopping list.


I have not done so, but based on my random memories of the history of  
this, it may be that this is not implemented though I thought it was  
(for normal configurable products at least... for the variant feature  
tree stuff that would fall on whoever implemented it).


If you think this is a bug, or it is functionality you would expect to  
be there based on things you can do in the UI, the best way to  
communicate about this is in terms of:


1. what did you do (in details, with links, values in form fields, etc)
2. what did you expect to happen
3. what actually happened

Based on that other people can try it and more easily give feedback  
and/or isolate the problem.


-David


On Feb 19, 2009, at 1:53 AM, Arpit Singh Pandya wrote:


Hello David,

Thanks for the Reply.

I was looking for that too, but this answer is a part of what i am  
expecting. because I am thinking of a product which is a little bit  
different from traditional product which we are using in e-commerce  
(i think so, but may be i am wrong to).


the product is such as :-* configure product, associate with virtual  
product having some optional feature and also follow the
 
virtualVariantMethodEnum="VV_FEATURETREE".*


is this scenario present in OOTB, for such kind of product (i am not  
able to find) or any body is working on it.


Please let me know, if i am thinking wrong or going in wrong  
direction, is this possible in ofbiz or not.


and the main problem is same as explained by Vivek.

Thanks & Regards

Arpit Singh Pandya


Vivek Mishra wrote:

Thanks for the reply David,

Here main problem is that how can we add a configurable product in  
Shopping List from Product detail page cause configurable product is

created when we submit the order.

I am trying to do it with feature tree generation technique.

Kind Regards,
--
Vivek Mishra
David E Jones wrote:


Arpit,

This is a great write-up with lots of detail about your question  
and issue.


I'm not sure what a good answer is, other than: what you are  
looking for is different than what is currently implemented so  
some changes are needed to make it work that way.


Is that the sort of feedback you were looking for? If not, please  
feel free to follow-up with additional questions.


-David


On Feb 17, 2009, at 6:14 AM, Arpit Singh Pandya wrote:


Hello Jacques, All ,
Thanks for your Suggestion. I just go through explanations of  
feature explosion mechanism. its really very helpful to me.


as we see shopping list behavior  from two different page
1 from product detail page
2 from show cart page (after add to cart).

But I am still confused about the different behavior of wish list  
from different page, but IMO it should work same from both place  
then it will be more significant. Here is the steps that i follow


1. Login with admin and ofbiz
2. Product detail page select all the feature for the product  
*WG-9943*  color:- Black ,  Size : - 4 Wheel

3 and then click to "*Add to shopping list *"  ,

then in shopping(wish) list page, it Shows the Virtual Product  
WG-9943 with out feature which I selected from product detail page,

where IMO it should show  *WG-9943-B4*

Wish List also shows the link in the last column with the drop  
down which contains all variants of that product (as they are  
available as Finished Goods in data base ). and we can *Replace  
with available  variant.*


Then some doubts as
1.What about that option which I selected from Product Detail  
Page ?
2.why i will again select the variant which I already selected in  
previous page before clicking on "Add To Shopping List". ?


OK it is the case for the Variants Explosion Mechanism. As  
variants are available in data base



But in case of Feature Explosion Mechanism as we know that it  
will create


1. From product detail page select feature for the product  
*WG-9944* *color : - black . Size  :- 4 Wheel*

2. click on the "Add To Shopping list"

then in shopping(wish) list page we again get the Virtual Product  
*WG-9944*  in the list,
and as there is no Variant available  in Data  Base, so in list  
there is no variant available (because that variant is created  
dynamically) , and then when we click on "Add to Cart" button  
from shopping list page


and will again send us to product detail page with the message : -
"*Choose Variation Before Adding to Cart.*"

but now as the purpose of wish list i can understand that the,  
one can save the list of product what he wants/ likes to buy in  
the near future,


and if that shopping list not contain the product with the  
selected features which was already saved.

It is the current scenario of wish list.


There is one more case where it works fine

for that i followed these steps
   - > Login

Re: How to add Invoice sales tax

2009-02-19 Thread David E Jones


Santosh,

I don't understand this question, and I'm not sure if others do  
either. For example, what do you mean by "when I add Invoice sales  
tax"? Where and how do you add it? Could you please rewrite this  
question in terms of:


1. what you did
2. what you expected to happen
3. what actually happened

-David


On Feb 19, 2009, at 3:07 AM, Santosh Malviya wrote:

Sorry for inconvenience, my question should have been when I add  
Invoice sales tax of unit price say $10 then I am unable to see its  
transaction entry while invoice shipping and handling entries are  
there. Where this entry is done. Am I missing something?.

Thanks in advance.

Thanks & Regards
Santosh Malviya


Santosh Malviya wrote:

Hello all,
I have done it in my purchase invoice but not able to see it in my  
overall price while my invoice shipping and handling price added  
successfully.

Thanks in advance.

Thanks & Regards
Santosh Malviya







average cost calculation in price rule

2009-02-19 Thread Hansen Wang
I have a product whose list price and default price are both set to 5. These
are the only explicit prices set for this product. There is also no cost
component set for this product. This product has only one inventory item
whose cost is 3. I set up a price rule for this product to add 30% of
average cost to the list price. When I try to add one of this product in the
cart, the price is shown 6.5, instead of 5.9. The reason is that the price
rule use the list price as the average cost. Is there any way (out of box)
the price rule will use inventory cost?


Re: ofbiz release 4.0 to linux

2009-02-19 Thread Jacek Wagner

Jacques Le Roux wrote:
I deploy R4 on Ubuntu here with absolutely no problems (using Apache 
HTTPD in front and mod_proxy_ajp)
http://docs.ofbiz.org/display/OFBIZ/Alternative+Demo+Servers#AlternativeDemoServers-Release4.0 



Jacques

From: "Tim Ruppert" 
Can't speak to the branch specifically, but we deploy to linux all 
the time with absolutely no issues.


Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595

- "Jacek Wagner"  wrote:


Hello,

Working off windows I deployed ofbiz (ant run-install) a number of
times with no problems.
When I tried to deploy on linux most of the seed data did not make to
db.
The schema looked OK, some tables, but not all were properly
populated. As a result ecommerce does not show any content.
Is there any "magic" switch to deploy ofbiz properly on the linux
box?

Jacek





Thank to all who responded. -- Jacek


Re: query

2009-02-19 Thread Santosh Malviya

Hello Vishnupriya,
DemoProduct.xml file of ecommerce will be helpful for you. You can see 
here how products are displayed in ecommerce.


vishnupr...@x-minds.info wrote:

hi,
  I have added some product in the product table using createProduct
service.I want to display that product in the e-commerce application.In
which xml file the modification to be done
with regards
vishnupriya


  


--
Thanks and Regards
Santosh Malviya
Enterprise Software Developer
Hotwax Media Inc.
Indore(M.P.) India
Mobile : +91 9977650914 



smime.p7s
Description: S/MIME Cryptographic Signature


query

2009-02-19 Thread vishnupriya
hi,
  I have added some product in the product table using createProduct
service.I want to display that product in the e-commerce application.In
which xml file the modification to be done
with regards
vishnupriya



Re: uploading party content

2009-02-19 Thread abdullah shaikh
Anyways I used  the java event to upload the file and its working fine :)
but dont know why the ServiceEventHandler is not working

On Thu, Feb 19, 2009 at 5:57 PM, abdullah shaikh <
abdullah.shaik...@gmail.com> wrote:

> For me its working but am stuck in attachUploadToDataResource service ..
> its not able to get the file name :(
>
>
> On Thu, Feb 19, 2009 at 5:34 PM, Tushar Abhyankar <
> tushar.abhyan...@amicontech.com> wrote:
>
>> Hi Abdullah,
>>Looking at ServiceEventHandler it should work. Its going in
>> the else part where it uses ByteBuffer, its failing this condition
>> if (item.isFormField() || item.getName() == null),  may be we are missing
>> something in form widget or ftl.
>>
>>  Thanks,
>>  Tushar J.Abhyankar
>>  Amicon Technologies Pvt. Ltd.(Mumbai)
>>  India's No. 1 OFBiz Service Provider.
>>
>> -Original Message-
>> From: abdullah shaikh [mailto:abdullah.shaik...@gmail.com]
>> Sent: Thursday, February 19, 2009 4:55 PM
>> To: user@ofbiz.apache.org
>> Subject: Re: uploading party content
>>
>> Hi Tushar,
>>
>> The approach you said is already implemented in ServiceEventHandler, this
>> class puts the bytebuffer, filesize, filename & content type into service
>> context
>>
>> I tried to get these values, but I was not able to get the ByteBuffer.
>>
>> Any idea on this ..
>>
>> Thanks,
>> Abdullah
>>
>>
>> On Thu, Feb 19, 2009 at 12:45 PM, abdullah shaikh <
>> abdullah.shaik...@gmail.com> wrote:
>>
>> > Thanks Tushar, I will try the given approach.
>> >
>> >
>> > On Thu, Feb 19, 2009 at 12:33 PM, Tushar Abhyankar <
>> > tushar.abhyan...@amicontech.com> wrote:
>> >
>> >> One correction in the Note
>> >> item is an FileItem object not an iterator object.
>> >>
>> >> You also require to Import
>> >> import org.apache.commons.fileupload.FileItem;
>> >>
>> >>
>> >> -Original Message-
>> >> From: Tushar Abhyankar [mailto:tushar.abhyan...@amicontech.com]
>> >> Sent: Thursday, February 19, 2009 12:25 PM
>> >> To: user@ofbiz.apache.org
>> >> Subject: RE: uploading party content
>> >>
>> >> Hi Abdullah,
>> >>You won't get the form data directly when you use
>> >> multipart/form-data we need to process the request the get the
>> parameters.
>> >> We use java end point to do that. I am not sure if it works with simple
>> >> methods.
>> >>
>> >> Here is what I did
>> >>
>> >> I created a utility method that gets all the parameters when posted
>> from
>> >> form of enctype as multipart/form-data
>> >>
>> >> so here are some implementation pointers  -
>> >>
>> >> I included
>> >> import org.apache.commons.fileupload.servlet.ServletFileUpload;
>> >> import org.apache.commons.fileupload.disk.DiskFileItemFactory;
>> >>
>> >> then in the method I used
>> >>
>> >> FileItemFactory factory = new DiskFileItemFactory();
>> >> ServletFileUpload upload = new ServletFileUpload(factory);
>> >>
>> >> And further did
>> >>
>> >> List items = upload.parseRequest(request);
>> >>
>> >> Now iterate the items list
>> >>
>> >> While iterating inside the loop you can fetch the parameters
>> >>
>> >> if (item.isFormField()) {
>> >>String fieldName = item.getFieldName();
>> >>
>> >>
>> >> Note: item is an iterator object
>> >>
>> >> Thanks,
>> >> Tushar J.Abhyankar
>> >> Amicon Technologies Pvt. Ltd.(Mumbai)
>> >> India's No. 1 OFBiz Service Provider.
>> >>
>> >> -Original Message-
>> >> From: abdullah shaikh [mailto:abdullah.shaik...@gmail.com]
>> >> Sent: Thursday, February 19, 2009 11:34 AM
>> >> To: user@ofbiz.apache.org
>> >> Subject: uploading party content
>> >>
>> >> Hi All,
>> >>
>> >>
>> >> I have a user registration form, wherein the user fill all the user
>> >> details
>> >> and can also upload a file.
>> >>
>> >> I have made the form enctype="multipart/form-data", method="post" and
>> >> action="<@ofbizUrl>createUser"
>> >>
>> >> Below is my "createUser" request-map :
>> >>
>> >> > >> invoke="validateUserForm"/>
>> >>> value="createUserService"/>
>> >> 
>> >>
>> >> I am validation the user registration form using simple-method,
>> >> simple-map-processor.
>> >>
>> >> Now the issue is when I submit the form the form data is not submitted
>> and
>> >> that's why the validation fails,
>> >> and if I remove enctype="multipart/form-data" the form data is
>> submitted
>> >> but
>> >> I need to use enctype for file upload.
>> >>
>> >>
>> >> What do I need to do to make the form work with the simple-method
>> >> validation
>> >> and enctype ?
>> >>
>> >>
>> >> Thanks,
>> >> Abdullah
>> >>
>> >>
>> >
>>
>>
>


Re: uploading party content

2009-02-19 Thread abdullah shaikh
For me its working but am stuck in attachUploadToDataResource service .. its
not able to get the file name :(

On Thu, Feb 19, 2009 at 5:34 PM, Tushar Abhyankar <
tushar.abhyan...@amicontech.com> wrote:

> Hi Abdullah,
>Looking at ServiceEventHandler it should work. Its going in
> the else part where it uses ByteBuffer, its failing this condition
> if (item.isFormField() || item.getName() == null),  may be we are missing
> something in form widget or ftl.
>
>  Thanks,
>  Tushar J.Abhyankar
>  Amicon Technologies Pvt. Ltd.(Mumbai)
>  India's No. 1 OFBiz Service Provider.
>
> -Original Message-
> From: abdullah shaikh [mailto:abdullah.shaik...@gmail.com]
> Sent: Thursday, February 19, 2009 4:55 PM
> To: user@ofbiz.apache.org
> Subject: Re: uploading party content
>
> Hi Tushar,
>
> The approach you said is already implemented in ServiceEventHandler, this
> class puts the bytebuffer, filesize, filename & content type into service
> context
>
> I tried to get these values, but I was not able to get the ByteBuffer.
>
> Any idea on this ..
>
> Thanks,
> Abdullah
>
>
> On Thu, Feb 19, 2009 at 12:45 PM, abdullah shaikh <
> abdullah.shaik...@gmail.com> wrote:
>
> > Thanks Tushar, I will try the given approach.
> >
> >
> > On Thu, Feb 19, 2009 at 12:33 PM, Tushar Abhyankar <
> > tushar.abhyan...@amicontech.com> wrote:
> >
> >> One correction in the Note
> >> item is an FileItem object not an iterator object.
> >>
> >> You also require to Import
> >> import org.apache.commons.fileupload.FileItem;
> >>
> >>
> >> -Original Message-
> >> From: Tushar Abhyankar [mailto:tushar.abhyan...@amicontech.com]
> >> Sent: Thursday, February 19, 2009 12:25 PM
> >> To: user@ofbiz.apache.org
> >> Subject: RE: uploading party content
> >>
> >> Hi Abdullah,
> >>You won't get the form data directly when you use
> >> multipart/form-data we need to process the request the get the
> parameters.
> >> We use java end point to do that. I am not sure if it works with simple
> >> methods.
> >>
> >> Here is what I did
> >>
> >> I created a utility method that gets all the parameters when posted from
> >> form of enctype as multipart/form-data
> >>
> >> so here are some implementation pointers  -
> >>
> >> I included
> >> import org.apache.commons.fileupload.servlet.ServletFileUpload;
> >> import org.apache.commons.fileupload.disk.DiskFileItemFactory;
> >>
> >> then in the method I used
> >>
> >> FileItemFactory factory = new DiskFileItemFactory();
> >> ServletFileUpload upload = new ServletFileUpload(factory);
> >>
> >> And further did
> >>
> >> List items = upload.parseRequest(request);
> >>
> >> Now iterate the items list
> >>
> >> While iterating inside the loop you can fetch the parameters
> >>
> >> if (item.isFormField()) {
> >>String fieldName = item.getFieldName();
> >>
> >>
> >> Note: item is an iterator object
> >>
> >> Thanks,
> >> Tushar J.Abhyankar
> >> Amicon Technologies Pvt. Ltd.(Mumbai)
> >> India's No. 1 OFBiz Service Provider.
> >>
> >> -Original Message-
> >> From: abdullah shaikh [mailto:abdullah.shaik...@gmail.com]
> >> Sent: Thursday, February 19, 2009 11:34 AM
> >> To: user@ofbiz.apache.org
> >> Subject: uploading party content
> >>
> >> Hi All,
> >>
> >>
> >> I have a user registration form, wherein the user fill all the user
> >> details
> >> and can also upload a file.
> >>
> >> I have made the form enctype="multipart/form-data", method="post" and
> >> action="<@ofbizUrl>createUser"
> >>
> >> Below is my "createUser" request-map :
> >>
> >>  >> invoke="validateUserForm"/>
> >> value="createUserService"/>
> >> 
> >>
> >> I am validation the user registration form using simple-method,
> >> simple-map-processor.
> >>
> >> Now the issue is when I submit the form the form data is not submitted
> and
> >> that's why the validation fails,
> >> and if I remove enctype="multipart/form-data" the form data is submitted
> >> but
> >> I need to use enctype for file upload.
> >>
> >>
> >> What do I need to do to make the form work with the simple-method
> >> validation
> >> and enctype ?
> >>
> >>
> >> Thanks,
> >> Abdullah
> >>
> >>
> >
>
>


RE: uploading party content

2009-02-19 Thread Tushar Abhyankar
Hi Abdullah,
Looking at ServiceEventHandler it should work. Its going in
the else part where it uses ByteBuffer, its failing this condition 
if (item.isFormField() || item.getName() == null),  may be we are missing
something in form widget or ftl.

 Thanks,
 Tushar J.Abhyankar
 Amicon Technologies Pvt. Ltd.(Mumbai)
 India's No. 1 OFBiz Service Provider.

-Original Message-
From: abdullah shaikh [mailto:abdullah.shaik...@gmail.com] 
Sent: Thursday, February 19, 2009 4:55 PM
To: user@ofbiz.apache.org
Subject: Re: uploading party content

Hi Tushar,

The approach you said is already implemented in ServiceEventHandler, this
class puts the bytebuffer, filesize, filename & content type into service
context

I tried to get these values, but I was not able to get the ByteBuffer.

Any idea on this ..

Thanks,
Abdullah


On Thu, Feb 19, 2009 at 12:45 PM, abdullah shaikh <
abdullah.shaik...@gmail.com> wrote:

> Thanks Tushar, I will try the given approach.
>
>
> On Thu, Feb 19, 2009 at 12:33 PM, Tushar Abhyankar <
> tushar.abhyan...@amicontech.com> wrote:
>
>> One correction in the Note
>> item is an FileItem object not an iterator object.
>>
>> You also require to Import
>> import org.apache.commons.fileupload.FileItem;
>>
>>
>> -Original Message-
>> From: Tushar Abhyankar [mailto:tushar.abhyan...@amicontech.com]
>> Sent: Thursday, February 19, 2009 12:25 PM
>> To: user@ofbiz.apache.org
>> Subject: RE: uploading party content
>>
>> Hi Abdullah,
>>You won't get the form data directly when you use
>> multipart/form-data we need to process the request the get the
parameters.
>> We use java end point to do that. I am not sure if it works with simple
>> methods.
>>
>> Here is what I did
>>
>> I created a utility method that gets all the parameters when posted from
>> form of enctype as multipart/form-data
>>
>> so here are some implementation pointers  -
>>
>> I included
>> import org.apache.commons.fileupload.servlet.ServletFileUpload;
>> import org.apache.commons.fileupload.disk.DiskFileItemFactory;
>>
>> then in the method I used
>>
>> FileItemFactory factory = new DiskFileItemFactory();
>> ServletFileUpload upload = new ServletFileUpload(factory);
>>
>> And further did
>>
>> List items = upload.parseRequest(request);
>>
>> Now iterate the items list
>>
>> While iterating inside the loop you can fetch the parameters
>>
>> if (item.isFormField()) {
>>String fieldName = item.getFieldName();
>>
>>
>> Note: item is an iterator object
>>
>> Thanks,
>> Tushar J.Abhyankar
>> Amicon Technologies Pvt. Ltd.(Mumbai)
>> India's No. 1 OFBiz Service Provider.
>>
>> -Original Message-
>> From: abdullah shaikh [mailto:abdullah.shaik...@gmail.com]
>> Sent: Thursday, February 19, 2009 11:34 AM
>> To: user@ofbiz.apache.org
>> Subject: uploading party content
>>
>> Hi All,
>>
>>
>> I have a user registration form, wherein the user fill all the user
>> details
>> and can also upload a file.
>>
>> I have made the form enctype="multipart/form-data", method="post" and
>> action="<@ofbizUrl>createUser"
>>
>> Below is my "createUser" request-map :
>>
>> > invoke="validateUserForm"/>
>>
>> 
>>
>> I am validation the user registration form using simple-method,
>> simple-map-processor.
>>
>> Now the issue is when I submit the form the form data is not submitted
and
>> that's why the validation fails,
>> and if I remove enctype="multipart/form-data" the form data is submitted
>> but
>> I need to use enctype for file upload.
>>
>>
>> What do I need to do to make the form work with the simple-method
>> validation
>> and enctype ?
>>
>>
>> Thanks,
>> Abdullah
>>
>>
>



Re: %PDF-

2009-02-19 Thread Heidi Dehaes
Hello,

Has anyone had this problem already once ?

regards,
heidi

2009/2/18 Heidi Dehaes 

> Here is the log.
> It is quite long !
>
> regards,
> Heidi
>
>
> 2009-02-18 23:49:00,827 (http-0.0.0.0-8443-Processor4) [
> ModelScreen.java:137:ERROR] Error rendering screen
> [component://common/widget/CommonScreens.xml#FoReportDecorator]:
> java.lang.RuntimeException: Error rendering included template at location
> [component://common/webcommon/includes/reportTemplate.fo.ftl]:
> freemarker.template.TemplateModelException: Method public java.lang.String
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(java.lang.String)
> throws org.ofbiz.base.util.GeneralException threw an exception when invoked
> on org.ofbiz.widget.screen.modelscreenwidget$sectionsrende...@f1f2cc.rolling 
> back transaction.
> 2009-02-18 23:49:00,839 (http-0.0.0.0-8443-Processor4) [
> TransactionUtil.java:295:INFO ] [TransactionUtil.setRollbackOnly]
> transaction rollback only not set, rollback only is already set.
> 2009-02-18 23:49:00,841 (http-0.0.0.0-8443-Processor4) [
> ModelScreen.java:148:ERROR] Error rendering screen
> [component://order/widget/ordermgr/OrderPrintForms.xml#OrderPDF]:
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://common/widget/CommonScreens.xml#FoReportDecorator]:
> java.lang.RuntimeException: Error rendering included template at location
> [component://common/webcommon/includes/reportTemplate.fo.ftl]:
> freemarker.template.TemplateModelException: Method public java.lang.String
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(java.lang.String)
> throws org.ofbiz.base.util.GeneralException threw an exception when invoked
> on org.ofbiz.widget.screen.modelscreenwidget$sectionsrende...@f1f2cc(Error 
> rendering included template at location
> [component://common/webcommon/includes/reportTemplate.fo.ftl]:
> freemarker.template.TemplateModelException: Method public java.lang.String
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(java.lang.String)
> throws org.ofbiz.base.util.GeneralException threw an exception when invoked
> on org.ofbiz.widget.screen.modelscreenwidget$sectionsrende...@f1f2cc).
> Rolling back transaction.
> 2009-02-18 23:49:00,847 (http-0.0.0.0-8443-Processor4) [
> TransactionUtil.java:255:ERROR]  exception report
> --
> [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack
> Trace  stack trace
> ---
> java.lang.Exception: Stack Trace
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:254)
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:151)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90)
> org.ofbiz.widget.screen.ScreenFopViewHandler.render(ScreenFopViewHandler.java:67)
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> java.lang.Thread.run(Thread.java:619)
> 

Re: uploading party content

2009-02-19 Thread abdullah shaikh
Hi Tushar,

The approach you said is already implemented in ServiceEventHandler, this
class puts the bytebuffer, filesize, filename & content type into service
context

I tried to get these values, but I was not able to get the ByteBuffer.

Any idea on this ..

Thanks,
Abdullah


On Thu, Feb 19, 2009 at 12:45 PM, abdullah shaikh <
abdullah.shaik...@gmail.com> wrote:

> Thanks Tushar, I will try the given approach.
>
>
> On Thu, Feb 19, 2009 at 12:33 PM, Tushar Abhyankar <
> tushar.abhyan...@amicontech.com> wrote:
>
>> One correction in the Note
>> item is an FileItem object not an iterator object.
>>
>> You also require to Import
>> import org.apache.commons.fileupload.FileItem;
>>
>>
>> -Original Message-
>> From: Tushar Abhyankar [mailto:tushar.abhyan...@amicontech.com]
>> Sent: Thursday, February 19, 2009 12:25 PM
>> To: user@ofbiz.apache.org
>> Subject: RE: uploading party content
>>
>> Hi Abdullah,
>>You won't get the form data directly when you use
>> multipart/form-data we need to process the request the get the parameters.
>> We use java end point to do that. I am not sure if it works with simple
>> methods.
>>
>> Here is what I did
>>
>> I created a utility method that gets all the parameters when posted from
>> form of enctype as multipart/form-data
>>
>> so here are some implementation pointers  -
>>
>> I included
>> import org.apache.commons.fileupload.servlet.ServletFileUpload;
>> import org.apache.commons.fileupload.disk.DiskFileItemFactory;
>>
>> then in the method I used
>>
>> FileItemFactory factory = new DiskFileItemFactory();
>> ServletFileUpload upload = new ServletFileUpload(factory);
>>
>> And further did
>>
>> List items = upload.parseRequest(request);
>>
>> Now iterate the items list
>>
>> While iterating inside the loop you can fetch the parameters
>>
>> if (item.isFormField()) {
>>String fieldName = item.getFieldName();
>>
>>
>> Note: item is an iterator object
>>
>> Thanks,
>> Tushar J.Abhyankar
>> Amicon Technologies Pvt. Ltd.(Mumbai)
>> India's No. 1 OFBiz Service Provider.
>>
>> -Original Message-
>> From: abdullah shaikh [mailto:abdullah.shaik...@gmail.com]
>> Sent: Thursday, February 19, 2009 11:34 AM
>> To: user@ofbiz.apache.org
>> Subject: uploading party content
>>
>> Hi All,
>>
>>
>> I have a user registration form, wherein the user fill all the user
>> details
>> and can also upload a file.
>>
>> I have made the form enctype="multipart/form-data", method="post" and
>> action="<@ofbizUrl>createUser"
>>
>> Below is my "createUser" request-map :
>>
>> > invoke="validateUserForm"/>
>>
>> 
>>
>> I am validation the user registration form using simple-method,
>> simple-map-processor.
>>
>> Now the issue is when I submit the form the form data is not submitted and
>> that's why the validation fails,
>> and if I remove enctype="multipart/form-data" the form data is submitted
>> but
>> I need to use enctype for file upload.
>>
>>
>> What do I need to do to make the form work with the simple-method
>> validation
>> and enctype ?
>>
>>
>> Thanks,
>> Abdullah
>>
>>
>


Re: Tricky! About fields in the form

2009-02-19 Thread BJ Freeman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

how you define an entity is in
framework\entity\dtd\entitymodel.xsd
and is like I gave you an example previous.
tables are entity names (well almost)
and columns are field names.
your attribute would be an Enumeration
your type would be EnumerationType.
you would use a view-entity to see all this in one row.
using the webtool import you would
1) load the EnumerationType
https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=EnumerationType&find=true&VIEW_SIZE=50&VIEW_INDEX=0
2) load the Enumeration with what you attributes
https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=Enumeration&find=true&VIEW_SIZE=50&VIEW_INDEX=0
you can find data entity and form examples by doing a search on the
application folders for Enumeration

Jack Liu sent the following on 2/19/2009 2:24 AM:
> If I want it through xml file, then how should I do?
> 
> The xml file maybe seems like this:
> 
>   
>   
>   
>   
> 
> 
> While in form, we can get all the attributes of type A.
> 
> target="createProtocolAttribute?protocolid=${id}">
>   
>   
>   
>   
>   
>   
> 
> 
> -Original Message-
> From: David E Jones [mailto:david.jo...@hotwaxmedia.com] 
> Sent: 2009年2月18日 2:28
> To: user@ofbiz.apache.org
> Subject: Re: Tricky! About fields in the form
> 
> 
> Jack,
> 
> I suggested configuring these through entity fields instead of in the  
> database because that is what is supported right now.
> 
> If you want something that adds fields to a Form Widget form based on  
> data in the database that would have to be written as it currently  
> only feeds from the form definition XML files. That wouldn't be too  
> hard to do (ie add functionality to add fields based on the database).  
> We decided early on that we wanted these things configured from XML  
> files instead of being more database driven (like Compiere and certain  
> other frameworks are) because it is easier to revision control and  
> manage in a large-scale environment (especially for updates and  
> collaboration when multiple people are working on the applications).
> 
> So yes, it could certainly be developed as an extension to the current  
> Form Widget, but does not exist now.
> 
> -David
> 
> 
> On Feb 17, 2009, at 6:46 AM, Jack Liu wrote:
> 
>> Are you sure what I want and you have a good solution?
>> Again:
>> What I want is not drop-down list
>>
>> In table attributetype:
>> Id attributetype
>> 1  ChUrl A
>> 2  SupportedCharsets A
>> 3  ServerID  A
>> 4  ServerID  B
>>
>>
>> While in form, we can get all the attributes of type A.
>>
>> >  target="createProtocolAttribute?protocolid=${id}">
>>  
>>  
>>  
>>  
>>  
>>  
>> 
>>
>> Three fields ChlUrl, SupportedCharsets, ServerID are all fetched  
>> from table, not written by hand. Of course, the form maybe looks  
>> different, but can reach the same effect as above.
>>
>> Are you sure you can do it? If you can do it, money is not a  
>> problem, I think.
>>
>> -Original Message-
>> From: BJ Freeman [mailto:bjf...@free-man.net]
>> Sent: 2009年2月17日 21:20
>> To: user@ofbiz.apache.org
>> Subject: Re: Tricky! About fields in the form
>>
> On the list I point people to places they can learn.
> however if you want personal help I will be glad to consult with you  
> for
> a fee.
> 
> Jack Liu sent the following on 2/17/2009 5:13 AM:
 Could you give me an example in OFBiz?
 I think it's very easy for you to find an example?


 -Original Message-
 From: BJ Freeman [mailto:bjf...@free-man.net]
 Sent: 2009t217
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJnTyhrP3NbaWWqE4RAuyhAJ94+Qx/5PuzZGvlvaQfJciaxaVAxgCgir++
es56A7pXTtOEi+3kKidfxTw=
=Heja
-END PGP SIGNATURE-


Re: Add To List is Working only for Virtual

2009-02-19 Thread Jacques Le Roux


https://issues.apache.org/jira/browse/OFBIZ-2161 ?

I finally had other priorities and have still not make an example in DemoConfigurator.xml to be used as demonstration in OFBiz 
eCommerce. Help would be appreciated...


Jacques

From: "Arpit Singh Pandya" 

Hello David,

Thanks for the Reply.

I was looking for that too, but this answer is a part of what i am expecting. because I am thinking of a product which is a little 
bit different from traditional product which we are using in e-commerce (i think so, but may be i am wrong to).


the product is such as :-* configure product, associate with virtual product 
having some optional feature and also follow the
 
virtualVariantMethodEnum="VV_FEATURETREE".*

is this scenario present in OOTB, for such kind of product (i am not able to 
find) or any body is working on it.

Please let me know, if i am thinking wrong or going in wrong direction, is this 
possible in ofbiz or not.

and the main problem is same as explained by Vivek.

Thanks & Regards

Arpit Singh Pandya


Vivek Mishra wrote:

Thanks for the reply David,

Here main problem is that how can we add a configurable product in Shopping List from Product detail page cause configurable 
product is

created when we submit the order.

I am trying to do it with feature tree generation technique.

Kind Regards,
--
Vivek Mishra
David E Jones wrote:


Arpit,

This is a great write-up with lots of detail about your question and issue.

I'm not sure what a good answer is, other than: what you are looking for is different than what is currently implemented so some 
changes are needed to make it work that way.


Is that the sort of feedback you were looking for? If not, please feel free to 
follow-up with additional questions.

-David


On Feb 17, 2009, at 6:14 AM, Arpit Singh Pandya wrote:


Hello Jacques, All ,
Thanks for your Suggestion. I just go through explanations of feature explosion 
mechanism. its really very helpful to me.

as we see shopping list behavior  from two different page
1 from product detail page
2 from show cart page (after add to cart).

But I am still confused about the different behavior of wish list from different page, but IMO it should work same from both 
place then it will be more significant. Here is the steps that i follow


1. Login with admin and ofbiz
2. Product detail page select all the feature for the product *WG-9943*  
color:- Black ,  Size : - 4 Wheel
3 and then click to "*Add to shopping list *"  ,

then in shopping(wish) list page, it Shows the Virtual Product WG-9943 with out feature which I selected from product detail 
page,

where IMO it should show  *WG-9943-B4*

Wish List also shows the link in the last column with the drop down which contains all variants of that product (as they are 
available as Finished Goods in data base ). and we can *Replace with available  variant.*


Then some doubts as
1.What about that option which I selected from Product Detail Page ?
2.why i will again select the variant which I already selected in previous page before 
clicking on "Add To Shopping List". ?

OK it is the case for the Variants Explosion Mechanism. As variants are 
available in data base


But in case of Feature Explosion Mechanism as we know that it will create

1. From product detail page select feature for the product *WG-9944* *color : - 
black . Size  :- 4 Wheel*
2. click on the "Add To Shopping list"

then in shopping(wish) list page we again get the Virtual Product *WG-9944*  in 
the list,
and as there is no Variant available  in Data  Base, so in list there is no variant available (because that variant is created 
dynamically) , and then when we click on "Add to Cart" button from shopping list page


and will again send us to product detail page with the message : -
"*Choose Variation Before Adding to Cart.*"

but now as the purpose of wish list i can understand that the, one can save the list of product what he wants/ likes to buy in 
the near future,


and if that shopping list not contain the product with the selected features 
which was already saved.
It is the current scenario of wish list.


There is one more case where it works fine

for that i followed these steps
- > Login with admin and ofbiz
- > Select Features for the product *(WG-9944 / WG-9943)*
- > click on "Add to Cart" button
- > then go to "view cart / Show cart" page
- > select the "check box" for the product
- > click on "Add to Shopping List"

then go to shopping list page , there we can see it is showing the proper 
variants for the product.



Thanks & Regards
---
Arpit Singh Pandya

Jacques Le Roux wrote:
Actually it works (you get the right price in the shopping list). This is due to how feature explosion works. Look for 
instance at WG-9943 : you can select the variants and have them clearly in the shopping list.

Please look for explanations about feature explosion mechanism.

Jacques

From

RE: Tricky! About fields in the form

2009-02-19 Thread Jack Liu
If I want it through xml file, then how should I do?

The xml file maybe seems like this:







While in form, we can get all the attributes of type A.

 








-Original Message-
From: David E Jones [mailto:david.jo...@hotwaxmedia.com] 
Sent: 2009年2月18日 2:28
To: user@ofbiz.apache.org
Subject: Re: Tricky! About fields in the form


Jack,

I suggested configuring these through entity fields instead of in the  
database because that is what is supported right now.

If you want something that adds fields to a Form Widget form based on  
data in the database that would have to be written as it currently  
only feeds from the form definition XML files. That wouldn't be too  
hard to do (ie add functionality to add fields based on the database).  
We decided early on that we wanted these things configured from XML  
files instead of being more database driven (like Compiere and certain  
other frameworks are) because it is easier to revision control and  
manage in a large-scale environment (especially for updates and  
collaboration when multiple people are working on the applications).

So yes, it could certainly be developed as an extension to the current  
Form Widget, but does not exist now.

-David


On Feb 17, 2009, at 6:46 AM, Jack Liu wrote:

> Are you sure what I want and you have a good solution?
> Again:
> What I want is not drop-down list
>
> In table attributetype:
> Id attributetype
> 1  ChUrl A
> 2  SupportedCharsets A
> 3  ServerID  A
> 4  ServerID  B
>
>
> While in form, we can get all the attributes of type A.
>
>target="createProtocolAttribute?protocolid=${id}">
>   
>   
>   
>   
>   
>   
> 
>
> Three fields ChlUrl, SupportedCharsets, ServerID are all fetched  
> from table, not written by hand. Of course, the form maybe looks  
> different, but can reach the same effect as above.
>
> Are you sure you can do it? If you can do it, money is not a  
> problem, I think.
>
> -Original Message-
> From: BJ Freeman [mailto:bjf...@free-man.net]
> Sent: 2009年2月17日 21:20
> To: user@ofbiz.apache.org
> Subject: Re: Tricky! About fields in the form
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On the list I point people to places they can learn.
> however if you want personal help I will be glad to consult with you  
> for
> a fee.
>
> Jack Liu sent the following on 2/17/2009 5:13 AM:
>> Could you give me an example in OFBiz?
>> I think it's very easy for you to find an example?
>>
>>
>> -Original Message-
>> From: BJ Freeman [mailto:bjf...@free-man.net]
>> Sent: 2009年2月17日 20:51
>> To: user@ofbiz.apache.org
>> Subject: Re: Tricky! About fields in the form
>>
>> find a page that has a drop down and look at the code.
>> preferably widget.
>> also look up views that use the org.ofbiz.common.enum entity
>> there are examples in code.
>> My comments are how ofbiz sees things.
>> it takes a while for a datbase centric person to see things the way
>> ofbiz does it. I speak from experience.
>> If you step back and let go of the Table Columnnames, it helps.
>>
>>
>>
>> Jack Liu sent the following on 2/16/2009 9:36 PM:
>>> Why would my attribute be enumerations?
>>> You mean attribute references an enumeration below?
>>
>>> >> 
>>> 
>>> 
>>> 
>>> 
>>> >> name="Enumeration">
>>>
>>>
>>> 
>>
>>> If a field is from an enumeration, in the page it will show a drop- 
>>> down list.
>>> It's now what I want. What I want shows like below:
>>
>>> >> target="createProtocolAttribute?protocolid=${id}">
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>
>>> -Original Message-
>>> From: BJ Freeman [mailto:bjf...@free-man.net]
>>> Sent: 2009t217
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJmrlprP3NbaWWqE4RApi9AKCMLp29GUOlHpReAiEI6pON3Z0RfACgkdMg
> q1tPBF8EF5l1wOaQdz0fRY4=
> =OcS9
> -END PGP SIGNATURE-



Re: How to add Invoice sales tax

2009-02-19 Thread Santosh Malviya
Sorry for inconvenience, my question should have been when I add Invoice 
sales tax of unit price say $10 then I am unable to see its transaction 
entry while invoice shipping and handling entries are there. Where this 
entry is done. Am I missing something?.

Thanks in advance.

Thanks & Regards
Santosh Malviya


Santosh Malviya wrote:

Hello all,
I have done it in my purchase invoice but not able to see it in my 
overall price while my invoice shipping and handling price added 
successfully.

Thanks in advance.

Thanks & Regards
Santosh Malviya





smime.p7s
Description: S/MIME Cryptographic Signature


How to add Invoice sales tax

2009-02-19 Thread Santosh Malviya

Hello all,
I have done it in my purchase invoice but not able to see it in my 
overall price while my invoice shipping and handling price added 
successfully.

Thanks in advance.

Thanks & Regards
Santosh Malviya



smime.p7s
Description: S/MIME Cryptographic Signature


Re: ofbiz release 4.0 to linux

2009-02-19 Thread Jacques Le Roux

I deploy R4 on Ubuntu here with absolutely no problems (using Apache HTTPD in 
front and mod_proxy_ajp)
http://docs.ofbiz.org/display/OFBIZ/Alternative+Demo+Servers#AlternativeDemoServers-Release4.0

Jacques

From: "Tim Ruppert" 

Can't speak to the branch specifically, but we deploy to linux all the time 
with absolutely no issues.

Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595

- "Jacek Wagner"  wrote:


Hello,

Working off windows I deployed ofbiz (ant run-install) a number of
times 
with no problems.

When I tried to deploy on linux most of the seed data did not make to
db.
The schema looked OK, some tables, but not all were properly
populated. 
As a result ecommerce does not show any content.

Is there any "magic" switch to deploy ofbiz properly on the linux
box?

Jacek






Re: multilingual Sub-content and alternate locale

2009-02-19 Thread Jacques Le Roux

Follow the same scheme using subdivisions. It should work (never testesd)

Jacques

From: "masionas" 


Hi,

I have another issue. I need localization within "en" locale. Example 
having two different descriptions for category in "en_US" and "en_GB". Below

files operates with localeString as localeString="en", localeString="fr"
etc.


Vince Clark wrote:

DemoProductI18nData.xml
DemoProductCategoriesI18nData.xml



--
View this message in context: 
http://www.nabble.com/multilingual-Sub-content-and-alternate-locale-tp20953155p22090347.html
Sent from the OFBiz - User mailing list archive at Nabble.com.





Re: Test Cases

2009-02-19 Thread Vinu Varghese

Thank you Pranay .. It worked  :-)



   Vinu Varghese 
   v...@x-minds.org 
   www.x-minds.org 
  
   Success always occurs in private, and failure in full view.
   
  
\/  ._ _   o  .__|   _
/\  ~~  | | |  |  | |  (_|  _\ 
   





Pranay Pandey wrote:

Hello Vinu,

Following should help you:

java -jar ofbiz.jar tests component=XXX


--
Pranay

On Feb 19, 2009, at 1:23 PM, Vinu Varghese wrote:


Hi all,

I have a special case, in which I am writing a component in ofbiz - 
in hot deploy - it has some services, and junit test cases for that. 
Is there an option with which I can only run the test cases in my 
component and view the results. Currently I am using 'run-tests', but 
it runs all tests in the ofbiz.


regards
Vinu

--


  Vinu Varghese 
  v...@x-minds.org 
  www.x-minds.org 
 
  Success always occurs in private, and failure in full view.
  
 
\/  ._ _   o  .__|   _
/\  ~~  | | |  |  | |  (_|  
_\








Re: Add To List is Working only for Virtual

2009-02-19 Thread Arpit Singh Pandya

Hello David,

Thanks for the Reply.

I was looking for that too, but this answer is a part of what i am 
expecting. because I am thinking of a product which is a little bit 
different from traditional product which we are using in e-commerce (i 
think so, but may be i am wrong to).


the product is such as :-* configure product, associate with virtual 
product having some optional feature and also follow the
 
virtualVariantMethodEnum="VV_FEATURETREE".*


is this scenario present in OOTB, for such kind of product (i am not 
able to find) or any body is working on it.


Please let me know, if i am thinking wrong or going in wrong direction, 
is this possible in ofbiz or not.


and the main problem is same as explained by Vivek.

Thanks & Regards

Arpit Singh Pandya


Vivek Mishra wrote:

Thanks for the reply David,

Here main problem is that how can we add a configurable product in 
Shopping List from Product detail page cause configurable product is

created when we submit the order.

I am trying to do it with feature tree generation technique.

Kind Regards,
--
Vivek Mishra
David E Jones wrote:


Arpit,

This is a great write-up with lots of detail about your question and 
issue.


I'm not sure what a good answer is, other than: what you are looking 
for is different than what is currently implemented so some changes 
are needed to make it work that way.


Is that the sort of feedback you were looking for? If not, please 
feel free to follow-up with additional questions.


-David


On Feb 17, 2009, at 6:14 AM, Arpit Singh Pandya wrote:


Hello Jacques, All ,
Thanks for your Suggestion. I just go through explanations of 
feature explosion mechanism. its really very helpful to me.


as we see shopping list behavior  from two different page
1 from product detail page
2 from show cart page (after add to cart).

But I am still confused about the different behavior of wish list 
from different page, but IMO it should work same from both place 
then it will be more significant. Here is the steps that i follow


1. Login with admin and ofbiz
2. Product detail page select all the feature for the product 
*WG-9943*  color:- Black ,  Size : - 4 Wheel

3 and then click to "*Add to shopping list *"  ,

then in shopping(wish) list page, it Shows the Virtual Product 
WG-9943 with out feature which I selected from product detail page,

where IMO it should show  *WG-9943-B4*

Wish List also shows the link in the last column with the drop down 
which contains all variants of that product (as they are available 
as Finished Goods in data base ). and we can *Replace with 
available  variant.*


Then some doubts as
1.What about that option which I selected from Product Detail Page ?
2.why i will again select the variant which I already selected in 
previous page before clicking on "Add To Shopping List". ?


OK it is the case for the Variants Explosion Mechanism. As variants 
are available in data base



But in case of Feature Explosion Mechanism as we know that it will 
create


1. From product detail page select feature for the product *WG-9944* 
*color : - black . Size  :- 4 Wheel*

2. click on the "Add To Shopping list"

then in shopping(wish) list page we again get the Virtual Product 
*WG-9944*  in the list,
and as there is no Variant available  in Data  Base, so in list 
there is no variant available (because that variant is created 
dynamically) , and then when we click on "Add to Cart" button from 
shopping list page


and will again send us to product detail page with the message : -
"*Choose Variation Before Adding to Cart.*"

but now as the purpose of wish list i can understand that the, one 
can save the list of product what he wants/ likes to buy in the near 
future,


and if that shopping list not contain the product with the selected 
features which was already saved.

It is the current scenario of wish list.


There is one more case where it works fine

for that i followed these steps
- > Login with admin and ofbiz
- > Select Features for the product *(WG-9944 / WG-9943)*
- > click on "Add to Cart" button
- > then go to "view cart / Show cart" page
- > select the "check box" for the product
- > click on "Add to Shopping List"

then go to shopping list page , there we can see it is showing the 
proper variants for the product.




Thanks & Regards
---
Arpit Singh Pandya

Jacques Le Roux wrote:
Actually it works (you get the right price in the shopping list). 
This is due to how feature explosion works. Look for instance at 
WG-9943 : you can select the variants and have them clearly in the 
shopping list.

Please look for explanations about feature explosion mechanism.

Jacques

From: "Arpit Singh Pandya" 

Hello All,

In Product Detail page while adding product to the shopping/wish 
list, it will only take Virtual Product in the shopping/wish list, 
although we can select the variant for that product. I refer to 

Re: Test Cases

2009-02-19 Thread Pranay Pandey

Hello Vinu,

Following should help you:

java -jar ofbiz.jar tests component=XXX


--
Pranay

On Feb 19, 2009, at 1:23 PM, Vinu Varghese wrote:


Hi all,

I have a special case, in which I am writing a component in ofbiz -  
in hot deploy - it has some services, and junit test cases for that.  
Is there an option with which I can only run the test cases in my  
component and view the results. Currently I am using 'run-tests',  
but it runs all tests in the ofbiz.


regards
Vinu

--


  Vinu Varghese 
  v...@x-minds.org 
  www.x-minds.org 
 
  Success always occurs in private, and failure in full view.
  
 
\/  ._ _   o  .__|   _
/\  ~~  | | |  |  | |  (_|  _ 
\company-name-big>







smime.p7s
Description: S/MIME cryptographic signature


Re: synchronize SequenceValueItem entity for XML imports

2009-02-19 Thread David E Jones


You'll see in the OFBiz demo data that for one time loading we usually  
just keep the numbers under 1 so they don't conflict.


If you'll be doing it a lot, you might try a prefix per data source  
(isolated key spaces basically). The entity engine even support doing  
this for you (on the delegator element of the entityengine.xml file).


-David


On Feb 17, 2009, at 9:57 PM, Kumaraswamy nandipati wrote:


Hi Friends,

This is Kumaraswamy.

I am using ofbiz for my e-commerce application. I like the option  
data seed

through XML import which is provided in ofbiz.

we are seeding the data for *InventoryItem* entity though XML import  
since

eariler. By doing this, The sequence Numbers are not updating in *
SequenceValueItem*. Now I am not able to create *InventoryItem*  
through
events(either JAVA or mini-lang),  its giving duplicate primary key  
error,

because of the sequence numbers are already used.

Of course, by doing max(sequenceId)+1 and store. That will be bad  
idea what

I feel. Is there any alternate for this. May be an ECA to update
*SequenceValueItem
*entity with new seqId for every InventoryItem XML import.

Generally, we do XML imports frequently for few entities. How to  
implement
generic ECA which will update *SequenceValueItem *for every entity  
which

uses sequenceId. Any code help will be appriciated.



Thanks in Advance

--
Thanks,
Kumaraswamy.N