Re: Adding multiple enities

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

I assume you are using a recent SVN revision.
The services and mini code in ofbiz allows re-use.
it would be best if you went through the code in ofbiz and became
familiar, before writing any code.
You ask if you can do multiple contact mechs.
this usually means for one party and the example was how to do mutiple
contact mechs for a single party that has a role of employee.
The code in createUser which is called from createEmployee has the
contact Mechs like
 


Roel Veldhuizen sent the following on 2/15/2009 3:56 AM:
> Thanks for your anwer but I don't understand the code ;-)
> 
> What does it do? I think it creates an employee login. And more
> important in order to awnser my question could this code handle
> multiple logins at once?
> 
>  short-description="Create Employee" login-required="false">
> 
> 
> 
> 
> 
>  property="username.lowercase" default="false"
> field="username_lowercase"/>
>  property="password.lowercase" default="false"
> field="password_lowercase"/>
> 
> 
> 
> 
> 
> 
> 2009/2/14 BJ Freeman :
> look at CreateEmployee
> applications\party\script\org\ofbiz\party\user\UserEvents.xml
> 
> Roel Veldhuizen sent the following on 2/14/2009 7:34 AM:
 When I add a person I also want to add multiple contactMech's. Is it
 possible to add multiple contactMechs in one service? Or should I
 build javacode to handle this?

 Thanks in advance,

 Roel Veldhuizen


>>


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

iD8DBQFJmG+drP3NbaWWqE4RAhdcAJ9nnTk0bW6ydTBuC1L3bjMExgfHyACePZO4
kon+MVhEKxZV918Zxik15e0=
=3bSB
-END PGP SIGNATURE-


Re: VAT and Config Product in Cart

2009-02-15 Thread Eric DE MAULDE

Hello Jacques,

Thanks
I have posted a patch implements a basic solution to show Configurable goods 
VAT


Eric
- Original Message - 
From: "Jacques Le Roux" 

To: 
Sent: Sunday, February 15, 2009 3:16 PM
Subject: Re: VAT and Config Product in Cart


Until someone, or more likely an organisation, will suport and effort to 
deal correctly with VAT in all OFBiz I think everyone will come with his 
own locale features.
I have suggested something in the past (but unfortunately without opening 
a new thread, my bad) 
http://www.nabble.com/Discussion%3A-Screen-Widget-Java-Code-Cleanup-to20712463.html#a20744929

Without any answers so far.
You may put something about that in 
http://docs.ofbiz.org/display/OFBIZ/VAT
Note that there are currently some Jira issues open about this subject 
https://issues.apache.org/jira/browse/OFBIZ-366


Any help appreciated...

Jacques

From: "Eric DE MAULDE" 
Hi,

I have configured my tax system with a VAT (display VAT with price)
For Configurable Good (Non-variant and variant)
In Minicart and Showcart, prices are displayed without VAT
(Non configurable good are displayed with VAT, it's OK)
Surfers have to wait the final validation order to see prices including 
VAT.


Do you have same problem ?
Have you an idea to resolve it ?

Thanks

Eric







Re: Surveys I18n and l10n

2009-02-15 Thread Vikas Mayur
I have opened a issue some time back, but never get a chance to work  
on that.


https://issues.apache.org/jira/browse/OFBIZ-1951

Vikas

On Feb 15, 2009, at 1:23 PM, Jacques Le Roux wrote:


Has anyone ever tried to I18n and l10n surveys ?

Thanks

Jacques




smime.p7s
Description: S/MIME cryptographic signature


Re: VAT and Config Product in Cart

2009-02-15 Thread Jacques Le Roux
Until someone, or more likely an organisation, will suport and effort to deal correctly with VAT in all OFBiz I think everyone will 
come with his own locale features.
I have suggested something in the past (but unfortunately without opening a new thread, my bad) 
http://www.nabble.com/Discussion%3A-Screen-Widget-Java-Code-Cleanup-to20712463.html#a20744929

Without any answers so far.
You may put something about that in http://docs.ofbiz.org/display/OFBIZ/VAT
Note that there are currently some Jira issues open about this subject 
https://issues.apache.org/jira/browse/OFBIZ-366

Any help appreciated...

Jacques

From: "Eric DE MAULDE" 
Hi,

I have configured my tax system with a VAT (display VAT with price)
For Configurable Good (Non-variant and variant)
In Minicart and Showcart, prices are displayed without VAT
(Non configurable good are displayed with VAT, it's OK)
Surfers have to wait the final validation order to see prices including VAT.

Do you have same problem ?
Have you an idea to resolve it ?

Thanks

Eric




Re: Cart and same Product Id but different configuration

2009-02-15 Thread Jacques Le Roux

Hi Eric,

No problem like that OOTB. You can check on alternate server where I have 
created an order WSCO1

Jacques

From: "Eric DE MAULDE" 
Hi,

When a customer put into the cart different configurations from the same 
product (same product ID)
The cart doesn't differenciate products.
For the cart it's the same refence and line.

Do you have the same problem ?
An idea ?

Thanks


Eric



Cart and same Product Id but different configuration

2009-02-15 Thread Eric DE MAULDE
Hi,

When a customer put into the cart different configurations from the same 
product (same product ID)
The cart doesn't differenciate products.
For the cart it's the same refence and line.

Do you have the same problem ?
An idea ?

Thanks


Eric 

Re: Adding multiple enities

2009-02-15 Thread Roel Veldhuizen
Thanks for your anwer but I don't understand the code ;-)

What does it do? I think it creates an employee login. And more
important in order to awnser my question could this code handle
multiple logins at once?















2009/2/14 BJ Freeman :
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> look at CreateEmployee
> applications\party\script\org\ofbiz\party\user\UserEvents.xml
>
> Roel Veldhuizen sent the following on 2/14/2009 7:34 AM:
>> When I add a person I also want to add multiple contactMech's. Is it
>> possible to add multiple contactMechs in one service? Or should I
>> build javacode to handle this?
>>
>> Thanks in advance,
>>
>> Roel Veldhuizen
>>
>>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJlwylrP3NbaWWqE4RAg2fAJ45zFdGGh2yr/EP5Ts9ghJWzXTAlACgychD
> pIYsVVcwZxiU6TdktgH4teM=
> =ZNra
> -END PGP SIGNATURE-
>


RE: How to make a form with options auto-submitted?

2009-02-15 Thread Jack Liu
Thank you!
It works well.

-Original Message-
From: Hans Bakker [mailto:mailingl...@antwebsystems.com] 
Sent: 2009年2月15日 15:59
To: user@ofbiz.apache.org
Subject: RE: How to make a form with options auto-submitted?

search for 'event="onChange"' in *Forms.xml files for examples.

On Sun, 2009-02-15 at 11:35 +0800, Jack Liu wrote:
> We know, in html, we need write some javascript code.
> In OFBiz, then how should we do?
> 
> -Original Message-
> From: Jack Liu [mailto:jack@aicent.com] 
> Sent: 2009年2月15日 11:06
> To: user@ofbiz.apache.org
> Subject: How to make a form with options auto-submitted?
> 
> Hi, ALL
> I want to implement a feature:
> When an option is selected, the form including this drop-down list
> should be submitted automatically.
> How should I do?
> 
> 
> Best Regards,
> 
> Jack Liu 
> 
-- 
Antwebsystems.com: Quality OFBiz services for competitive prices



VAT and Config Product in Cart

2009-02-15 Thread Eric DE MAULDE
Hi,

I have configured my tax system with a VAT (display VAT with price)
For Configurable Good (Non-variant and variant)
In Minicart and Showcart, prices are displayed without VAT
(Non configurable good are displayed with VAT, it's OK)
Surfers have to wait the final validation order to see prices including VAT.

Do you have same problem ?
Have you an idea to resolve it ?

Thanks

Eric 


Re: Project Accounting

2009-02-15 Thread Hans Bakker
Hi BJ,
see comments inline

On Sat, 2009-02-14 at 17:50 -0800, BJ Freeman wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> just some quick thoughts.
> I would have basic services in projects that calculate cost.

currently in accounting grouped together as rate services

> this leaves the manipulation of resources in project services.
> these could be used in projects for different what if's.
> the Agreement work efffort appls would also be just for projects and
> stay in the projects services. if you break this down small enough you
> can do by items.
> 
> the accounting appication would the store the Invioce generated by the
> projects.
> Accounting would then process invoices as a generic thing.

that is how it is now...
> 
> Vince M. Clark sent the following on 2/14/2009 4:31 PM:
> > Two areas I am investigating: 
> > 
> > 1) Billing for projects other than by the hour. Right now I am mostly 
> > concerned with daily or weekly rates and am not addressing other types of 
> > billing such as fixed price, milestone/progress billing, etc. 
> > I've gone thru the services in Project Manager related to generating 
> > invoices and the associated services called in the accounting component to 
> > get rates. The periodType entity already has values defined for weekly, 
> > monthly, and quarterly, but not daily. I added a RATE_DAY periodType and 
> > was about to try and use it, when I realized that the rate screen under 
> > party manager and project manager (rate for a resource) has this field hard 
> > coded to RATE_HOUR. 
> > Upon further investigation I see that when defining rates for a workeffort 
> > you are able to set the periodType. So I guess I'm looking for some 
> > guidance on what else needs to be done in project manager to take advantage 
> > of this. 
> > 
> > 2) Capturing different rates for customers and contractors. Customer rates 
> > would be used when generating AR invoices, contractor rates would be used 
> > when generating AP invoices. 
> > Very early in my investigation on this one. My initial guess is that you 
> > would: 
> > Create an agreement between company and customer 
> > Create an agreement between company and contractor 
> I agree
> > 
> >>From here I'm stuck. Two possible paths: 
> > Agreement Work Effort Appls 
> use this to track actual work. to compare against Budget.
> > Agreement Items 
> i would use the Agreement Items for general things like Rate Caps, skill
> sets to use, Goals, Scope, overview of a project. Sort of like budget.
> > 
> > Work Effort Appls seems like the logical choice, as it allows you to 
> > reference a specific work effort (project) for the agreement. But this 
> > would not get down to the resource level. For example we may charge 
> > different rates for different resources. This also would not deal with two 
> > different rates (customer and contractor) since with workeffort doesn't 
> > capture the rates that way. It just captures a single rate for a resource. 
> > So as far as I can tell rates on projects are implicitly intended to be 
> > used as a customer rate. 
> > 
> > If you think about this from a pricing perspective I just need a way to 
> > capture a "purchase" price and "sale" price, and use the correct price for 
> > a resource on AR and AP invoices. Again, looking for some guidance. 
> > 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFJl3TQrP3NbaWWqE4RAkWwAKDCrqRR2IJTm8tAXAjv/1YXPHXOmACeOsZM
> Co37p6+3UfuqyU4ZsNziJXk=
> =WG0Y
> -END PGP SIGNATURE-
-- 
Antwebsystems.com: Quality OFBiz services for competitive prices



Re: Project Accounting

2009-02-15 Thread Hans Bakker
On Sat, 2009-02-14 at 17:31 -0700, Vince M. Clark wrote:
> Two areas I am investigating: 
> 
> 1) Billing for projects other than by the hour. Right now I am mostly 
> concerned with daily or weekly rates and am not addressing other types of 
> billing such as fixed price, milestone/progress billing, etc. 
> I've gone thru the services in Project Manager related to generating invoices 
> and the associated services called in the accounting component to get rates. 
> The periodType entity already has values defined for weekly, monthly, and 
> quarterly, but not daily. I added a RATE_DAY periodType and was about to try 
> and use it, when I realized that the rate screen under party manager and 
> project manager (rate for a resource) has this field hard coded to RATE_HOUR. 

in accounting you can define these with any periodtype under rates and
can be easily changed to any period type in party and project manager.
The data model allows for this. 

> Upon further investigation I see that when defining rates for a workeffort 
> you are able to set the periodType. So I guess I'm looking for some guidance 
> on what else needs to be done in project manager to take advantage of this. 
> 
> 2) Capturing different rates for customers and contractors. Customer rates 
> would be used when generating AR invoices, contractor rates would be used 
> when generating AP invoices. 
> Very early in my investigation on this one. My initial guess is that you 
> would: 
> Create an agreement between company and customer 
> Create an agreement between company and contractor 

sure you can do this, however the RateAmount entity already allows for
this without using the agreement although that can also be a solution.

> 
> >From here I'm stuck. Two possible paths: 
> Agreement Work Effort Appls 
> Agreement Items 
> 
> Work Effort Appls seems like the logical choice, as it allows you to 
> reference a specific work effort (project) for the agreement. But this would 
> not get down to the resource level. For example we may charge different rates 
> for different resources. This also would not deal with two different rates 
> (customer and contractor) since with workeffort doesn't capture the rates 
> that way. It just captures a single rate for a resource. So as far as I can 
> tell rates on projects are implicitly intended to be used as a customer rate. 
> 
> If you think about this from a pricing perspective I just need a way to 
> capture a "purchase" price and "sale" price, and use the correct price for a 
> resource on AR and AP invoices. Again, looking for some guidance. 
-- 
Antwebsystems.com: Quality OFBiz services for competitive prices