MultiTrustManager

2010-11-15 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Why is there a custom MultiTrustManager implemented in OFBiz and not the
"default" one used that is provided by:

javax.net.ssl.TrustManagerFactory.getInstance("SunX509")

Because of this I have to put the certificate of every HTTPS endpoint I
want to connect to in the truststore. Whereas normally it is only
necessary to put the root CA certificate of a signed certificate into
the truststore.

Cheers,
René Scheibe
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzhDI4ACgkQUXs9EHvIuCpzFACfU5aHHPdgmx5PX2gFO26qKNWy
5XIAnAtPJ8r3HcIm130F037pUPUfoKln
=orDL
-END PGP SIGNATURE-


Truststore

2010-11-11 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I want to connect with the OFBiz HttpClient to a HTTPS site.

How do I have to configure a truststore in OFBiz so that my code is
using it?

What I have seen so far is, that ofbizssl.jks is only used for the
Catalina container.

Cheers,
René
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzcFX4ACgkQUXs9EHvIuCrRBACfQNynf16AwpzJkbJm/MVvXNd0
v+YAn2JOeOFE1VwqJspHDbNvl9hY6+Cy
=h97z
-END PGP SIGNATURE-


Fetch entities via RMI

2010-10-27 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

If I have an app that is not having an OFBiz delegator because it is
communicating with OFBiz via RMI, is there a service one can expose to
fetch OFBiz GenericEntities remotely?

Cheers,
René
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzIZoMACgkQUXs9EHvIuCp/FgCfZFtXyPM7bv0VJSlZZYt2SX+H
T/YAn1mwgmHc/Mhf5cGpeQOGhedCy6p8
=yEyu
-END PGP SIGNATURE-


Variant Features @ Invoice

2010-10-16 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I was wondering how the features of a product variant make it into
the order/invoice if they are not saved within the product name?

Scenario:
Customer buys variant 1 with Features "red" and "XXL".
There are plenty of methods to show them on the product detail page
or in the cart - e.g.:

ProductWorker.getVariantDistinguishingFeatures(product)
ProductWorker.getProductFeaturesByApplTypeId(product, 'STANDARD_FEATURE')

But they cannot be used for the order/invoice as variants can change
(e.g.: entity ProductFeatureAppl) but the invoice should not change.

So is the feature info already stored somewhere else for the order/invoice
or how to do so?

Cheers,
René
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky5hccACgkQUXs9EHvIuCr9UACdHZPP/qq+mAPkhN61QIX4//11
kaEAn2RuAezflfnpk/YM9s5siqDeXR9q
=4Ezp
-END PGP SIGNATURE-


Re: Screen Question

2010-10-11 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 10/11/2010 08:24 PM, Deepa Priolkar wrote:
> I have a basic requirement to show certain sections of a web page only to 
> users of specific role types.  What is the best way of doing that using 
> ofbiz.  Can we include-screen on basis of some role type checks? 
>  
> Thanks & Regards,
> Deepa
First have a look at:

http://www.opensourcestrategies.com/ofbiz/security.php
https://cwiki.apache.org/OFBTECH/ofbiz-security.html

For restricting sections of a page see some examples below.

In Freemarker (.ftl files):
(set a "hasPermission" variable in an action script before)

<#if security.hasEntityPermission("SOME_PERMISSION", "_VIEW", session)>
...
<#else>
   ${uiLabelMap.PagePermissionError}



In Screens:







   







Cheers,
René
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyzY8gACgkQUXs9EHvIuCrOUwCeP7BnUeQ+wKzFew4jShaSyHDg
xe8An0K9Ja55uVxtUrtN7rd/UkBZDhsW
=jDlG
-END PGP SIGNATURE-


Ship Cost Estimates for Drop Shipment

2010-10-04 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I want to use ecommerce with drop shipment and calculate ship costs per
supplier (ship group).

Is there a way to setup the ShipmentCostEstimate per supplier? I have
seen a partyId and roleTypeId in the entity definition. But having a
look at ShipmentServices.calcShipmentCostEstimate() it is only checked
if a ShipmentCostEstimate contains a partyId and/or roleTypeId to
increase to priority of a match. But it is not checked against any partyId.

Regards,
René
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyp7o8ACgkQUXs9EHvIuCoLzQCeLUXP6bRHyN6YqqNPzzPiykJe
5F4AniIrFboF8n72Oc4S30ePlbPTZDuV
=tBjn
-END PGP SIGNATURE-


Re: ApacheCon2010 and the new OFBiz Cookbook

2010-09-29 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/16/2010 12:49 PM, Ruth Hoffman wrote:
>  Hi All:
> Just a quick announcement that I hope won't ruffle too many feathers:
> 
> I'm going to give away at least one copy of the new OFBiz Cookbook that
> I authored for Packt at ApacheCon2010 this year. (That is if the ASF
> doesn't find a way to stop me.) I'll have a drawing at my talk (1:00pm
> on Wed) that anyone who attends can enter. At the end of the session
> I'll draw a name from those entered and give away the book. No strings
> attached except you've gotta stay for my talk :-)
> 
> If you're interested, I've done an opinion piece about the book, Packt
> and this give-away here:
> http://www.myofbiz.com/control/blog/RuthHoffman. [Unfortunately, I
> haven't got the comments part of the blog working yet and I'm pretty
> busy with a paying customer right now...but maybe by show time I'll have
> that fixed and we can start a discussion about the book.]
Hi Ruth,

I have another review comment.

On page 258 you are talking about Delegator.findList(). It says:
"The delegator.findList() method returns a Java List or null if no
values are found".

This is not correct. It returns an empty list if no values are found -
see EntityListIterator.getCompleteList().

I'm quite happy about this behavior, so it's not necessary to always
check for null.

Regards,
René Scheibe

- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyi6oMACgkQUXs9EHvIuCqVkwCeLRrBKnxv1ZzXOcdiHa5mEJUF
IKoAn2j6iOHy/2c7hSOnUrFyqqUMMUf0
=MidP
-END PGP SIGNATURE-


Nesting required-permissions in service definition

2010-09-16 Thread Rene Scheibe
We are using nested 'required-permissions' elements in our service
definitions to implement AND & OR joining. See below:









This works create but the services.xsd does not specify such nesting.
Therefore warnings show up when starting OFBiz.

The question now is, if the services.xsd should be updated?

Regards,
René
-- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082


Re: Handling negative inventory quantities

2010-08-31 Thread Rene Scheibe
Maybe it's better to read the example as HTML-formatted email.

-- initial data fill
-- ProductA
inventory_item_detail[inventoryItemId: 9000, inventoryItemDetailSeqId:
0001, quantityOnHandDiff:  300,0, availableToPromiseDiff:  200.0]
inventory_item[   inventoryItemId: 9000, productId:
ProductA,quantityOnHandTotal: 300.0,
availableToPromiseTotal: 200.0]

-- order (5x ProductA, 2x ProductB)
-- ProductA
inventory_item_detail[inventoryItemId: 9000, inventoryItemDetailSeqId:
10002, quantityOnHandDiff:0.0, availableToPromiseDiff:   -5.0]
inventory_item[   inventoryItemId: 9000, productId:
ProductA, quantityOnHandTotal: 300.0,
availableToPromiseTotal: 195.0]

-- ProductB
inventory_item_detail[inventoryItemId: 1, inventoryItemDetailSeqId:
10001, quantityOnHandDiff:  0.0, availableToPromiseDiff:  -2.0]
inventory_item_detail[inventoryItemId: 1, inventoryItemDetailSeqId:
10003, quantityOnHandDiff:  0.0, availableToPromiseDiff:   2.0]
inventory_item_detail[inventoryItemId: 10001, inventoryItemDetailSeqId:
10004, quantityOnHandDiff:  0.0, availableToPromiseDiff:  -2.0]
inventory_item[   inventoryItemId: 1, productId:
ProductB, quantityOnHandTotal: 0.0,
availableToPromiseTotal:  0.0]
inventory_item[   inventoryItemId: 10001, productId:
ProductB, quantityOnHandTotal: 0.0, availableToPromiseTotal:
-2.0]

On 08/31/2010 05:43 PM, Rene Scheibe wrote:
> -- order (5x ProductA, 2x ProductB)
>
> -- ProductA
>
> inventory_item_detail[inventoryItemId: 9000, inventoryItemDetailSeqId:
> 10002, quantityOnHandDiff:0.0, availableToPromiseDiff:   -5.0]
>
> inventory_item[   inventoryItemId: 9000, productId:
> ProductA, quantityOnHandTotal: 300.0,
> availableToPromiseTotal: 195.0]
>
>
> -- ProductB
>
> inventory_item_detail[inventoryItemId: 1,
> inventoryItemDetailSeqId: 10001, quantityOnHandDiff:  0.0,
> availableToPromiseDiff:  -2.0]
>
> inventory_item_detail[inventoryItemId: 1,
> inventoryItemDetailSeqId: 10003, quantityOnHandDiff:  0.0,
> availableToPromiseDiff:   2.0]
>
> inventory_item_detail[inventoryItemId: 10001,
> inventoryItemDetailSeqId: 10004, quantityOnHandDiff:  0.0,
> availableToPromiseDiff:  -2.0]
>
> inventory_item[   inventoryItemId: 1, productId:
> ProductB, quantityOnHandTotal: 0.0,
> availableToPromiseTotal:  0.0]
>
> inventory_item[   inventoryItemId: 10001, productId:
> ProductB, quantityOnHandTotal: 0.0,
> availableToPromiseTotal: -2.0]
>   

-- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082



Handling negative inventory quantities

2010-08-31 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

How is it possible in OFBiz to handle negative inventory quantities?
It should be possible to sell goods even if the quantity in the
inventory is not sufficient and gets negative after an order.

If I try to sell a product (ProductB) without any inventory entry,
OFBiz does some strange things in the database.
It inserts 3 entries: decreasing the ATP, increasing the ATP and
decreasing the ATP again.
For a product (ProductA) with positive ATP everything is fine.

- -- initial data fill

- -- ProductA

inventory_item_detail[inventoryItemId: 9000, inventoryItemDetailSeqId:
0001, quantityOnHandDiff:  300,0, availableToPromiseDiff:  200.0]

inventory_item[   inventoryItemId: 9000, productId:
ProductA,quantityOnHandTotal: 300.0,
availableToPromiseTotal: 200.0]


- -- order (5x ProductA, 2x ProductB)

- -- ProductA

inventory_item_detail[inventoryItemId: 9000, inventoryItemDetailSeqId:
10002, quantityOnHandDiff:0.0, availableToPromiseDiff:   -5.0]

inventory_item[   inventoryItemId: 9000, productId:
ProductA, quantityOnHandTotal: 300.0,
availableToPromiseTotal: 195.0]


- -- ProductB

inventory_item_detail[inventoryItemId: 1,
inventoryItemDetailSeqId: 10001, quantityOnHandDiff:  0.0,
availableToPromiseDiff:  -2.0]

inventory_item_detail[inventoryItemId: 1,
inventoryItemDetailSeqId: 10003, quantityOnHandDiff:  0.0,
availableToPromiseDiff:   2.0]

inventory_item_detail[inventoryItemId: 10001,
inventoryItemDetailSeqId: 10004, quantityOnHandDiff:  0.0,
availableToPromiseDiff:  -2.0]

inventory_item[   inventoryItemId: 1, productId:
ProductB, quantityOnHandTotal: 0.0,
availableToPromiseTotal:  0.0]

inventory_item[   inventoryItemId: 10001, productId:
ProductB, quantityOnHandTotal: 0.0,
availableToPromiseTotal: -2.0]


I have seen balancing services in InventoryServices.xml (eg.
"balanceInventoryItems") but I don't how the details.

Any suggestions?

Regards,
Rene

- -- 
René Scheibe * rene.sche...@tngtech.com * +49-176-62192936
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx9IyQACgkQUXs9EHvIuCoqxgCeOa5op2dr5Opa7nm1szmqmryG
G3cAn1fgTI3UHT3PgrZqi48C8ZIy0Egs
=/aRL
-END PGP SIGNATURE-



HTML href from a component to another component

2010-08-11 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

1. The ofbizUrl macro only works for intra-component links:


Is there a better way (macro) to refer to another component href?
The information should be in the framework as each component defines the
following in its ofbiz-component.xml:





So the below should technically be possbile to create a proper href:

viewimage?orderId=${orderId}>

Any thoughts or comments?

Regards,
René
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxiwmAACgkQUXs9EHvIuCrk6wCeImQ0PmuPT4cNZa1J5S+o/Wc5
reEAnjU8jIIWgIUYAE1nabUFeepCmp6j
=75Wi
-END PGP SIGNATURE-


Re: Purchase Order emails

2010-08-11 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

OFBiz 10.04

On 08/11/2010 10:02 AM, Info Olagos wrote:
> Hello,
> 
> Which version of Ofbiz do you use?
> 
> Heidi
> 
> 2010/8/11 Rene Scheibe 
> 
> On 08/11/2010 01:12 AM, BJ Freeman wrote:
>>>> in general, the business logic for purchase orders is different from
>>>> sales orders.
>>>> the default way ofbiz is setup purchase orders are based on stock
>>>> levels. There is a flag for drop ship that changes this but only created
>>>> the PO not emails itself.
>>>> also you want this to happen only after an sales order is approved, not
>>>> when it is created.
>>>> to create a email for PO just follow the data for sales order emails in
>>>> the demo data.
>>>> then you can put in an SECA to trigger on the service that create the
>>>> purchase order.
> Exactly what I was heading for. Just wanted to check if I missed
> something else.
> 
>>>> Rene Scheibe sent the following on 8/10/2010 3:39 PM:
>>>>> Is there any cause why only sales order emails but no purchase order
>>>>> emails are sent during the checkout process? Or do I miss specific
>>>>> database entries for the suppliers?
>>>>>
>>>>> The functionality is already there (can be triggered manually) as a
>>>>> "Send a confirmation email" button exists in the orderview page for both
>>>>> sales and purchase orders.
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxic04ACgkQUXs9EHvIuCq9nwCfSzAQdr6M34GmtepwTINJm0C+
YDYAnjZZtVVSFy1h20+oJoKfwBFQfwQt
=VL96
-END PGP SIGNATURE-


Re: Purchase Order emails

2010-08-11 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/11/2010 01:12 AM, BJ Freeman wrote:
> in general, the business logic for purchase orders is different from
> sales orders.
> the default way ofbiz is setup purchase orders are based on stock
> levels. There is a flag for drop ship that changes this but only created
> the PO not emails itself.
> also you want this to happen only after an sales order is approved, not
> when it is created.
> to create a email for PO just follow the data for sales order emails in
> the demo data.
> then you can put in an SECA to trigger on the service that create the
> purchase order.
Exactly what I was heading for. Just wanted to check if I missed
something else.

> Rene Scheibe sent the following on 8/10/2010 3:39 PM:
>> Is there any cause why only sales order emails but no purchase order
>> emails are sent during the checkout process? Or do I miss specific
>> database entries for the suppliers?
>>
>> The functionality is already there (can be triggered manually) as a
>> "Send a confirmation email" button exists in the orderview page for both
>> sales and purchase orders.
- -- 
René Scheibe * rene.sche...@tngtech.com * +49-176-62192936
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxiVwQACgkQUXs9EHvIuCrVswCeM0ZxFCNn91kU5mN+Va3D+jQQ
1fkAnjXXYNGcrJpTpC246n20g2gxVxlw
=pfb1
-END PGP SIGNATURE-


Purchase Order emails

2010-08-10 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Is there any cause why only sales order emails but no purchase order
emails are sent during the checkout process? Or do I miss specific
database entries for the suppliers?

The functionality is already there (can be triggered manually) as a
"Send a confirmation email" button exists in the orderview page for both
sales and purchase orders.

Regards,
René
- -- 
René Scheibe * rene.sche...@tngtech.com * +49-176-62192936
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxh1QQACgkQUXs9EHvIuCpe0gCbBzHeBzruDUoOTBMlMByYtytn
XjEAnA2JL7SRFQkiEX7GHSCW3m6gpBsq
=/PZT
-END PGP SIGNATURE-


Re: Is the CC update in the one page checkout broken?

2010-08-09 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/09/2010 05:56 PM, Rene Scheibe wrote:
> Shall the one page checkout working properly?
> 
> I get this error when continuing to Step 5:
> 
> [java]  runtime exception report
> --
> [java] Error evaluating Groovy scriptlet [${groovy:
> org.ofbiz.order.shoppingcart.ShoppingCart.CartPaymentInfo cpi =
> shoppingCart.getPaymentInfo(paymentMethodId, null, null, null, true);
> cpi.securityCode = cardSecurityCode; return cpi;}], inserting nothing;
> error was: groovy.lang.MissingPropertyException: No such property:
> cardSecurityCode for class: script1281352061618804188587
> [java] Exception: groovy.lang.MissingPropertyException
> [java] Message: No such property: cardSecurityCode for class:
> script1281352061618804188587
>  [java]  stack trace
> ---
> 
> 1. Looks like OnePageCheckoutProcess.ftl defines...
>  maxlength="4" value="" />
> 
> 2. ..but in service_checkout.xml the parameter is named different...
>  optional="true"/>
> 
> 3. ...and in CheckoutServices.xml the parameter is mapped again...
>  from-field="parameters.billToCardSecurityCode"/>
> 
> So why not changing the attribute name in the service definition to
> "cardSecurityCode" and removing the mapping in CheckoutServices.xml?  By
> the way, "billToCardSecurityCode" is not used anywhere else.
> 
> Any proposals?
Two more questions:

1. Why is the form field id="CVV2" but the name="cardSecurityCode"?
2. Why is this parameter optional and not mandatory?

Another suggestion how to fix this problem:
1. Rename the label, id and name to "billToCardSecurityCode" in
OnePageCheckoutProcess.ftl to meet the service definition.
2. Extend the attribute mapping line in CheckoutServices.xml so that in
case the CVV2 is not entered by the user, the field is defined
anyway.(otherwise groovy.lang.MissingPropertyException is still thrown)


Regards,
René
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxgLgAACgkQUXs9EHvIuCry+wCfU6KsRH8awsVe3VgoioXRiIoD
2RQAn1Q0vuldNIsveOdNZO9Mjt6Sq7Av
=AxrU
-END PGP SIGNATURE-


Is the CC update in the one page checkout broken?

2010-08-09 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Shall the one page checkout working properly?

I get this error when continuing to Step 5:

[java]  runtime exception report
- --
[java] Error evaluating Groovy scriptlet [${groovy:
org.ofbiz.order.shoppingcart.ShoppingCart.CartPaymentInfo cpi =
shoppingCart.getPaymentInfo(paymentMethodId, null, null, null, true);
cpi.securityCode = cardSecurityCode; return cpi;}], inserting nothing;
error was: groovy.lang.MissingPropertyException: No such property:
cardSecurityCode for class: script1281352061618804188587
[java] Exception: groovy.lang.MissingPropertyException
[java] Message: No such property: cardSecurityCode for class:
script1281352061618804188587
 [java]  stack trace
- ---

1. Looks like OnePageCheckoutProcess.ftl defines...


2. ..but in service_checkout.xml the parameter is named different...


3. ...and in CheckoutServices.xml the parameter is mapped again...


So why not changing the attribute name in the service definition to
"cardSecurityCode" and removing the mapping in CheckoutServices.xml?  By
the way, "billToCardSecurityCode" is not used anywhere else.

Any proposals?

Regards,
René
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxgJSwACgkQUXs9EHvIuCoJOQCeJij4SJwJhjvuK/YrGWJXmmow
VHAAn0jTPprXNcEXUaj6+r57He5G7Nje
=Ay9T
-END PGP SIGNATURE-


HOWTO Shipment

2010-08-09 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

1. Is there good documentation about the shipment process in OFBiz?
So far I just have seen the pages below but they are quite minimalistic:
- -
https://cwiki.apache.org/confluence/display/OFBIZ/Steps+to+process+a+Configurable+Product
- -
https://cwiki.apache.org/confluence/display/OFBIZ/Third+Party+Payment+and+Shipment+Configuration

2. How can a supplier enter tracking numbers for its parcels?
Having a look at the order details in the Order Manager I can create a
new shipment. Looking at the shipment details (via clicking on the
shipment id) I can see the route info for this shipping. But there is no
way to edit anything in the shipment route info.

Possible scenario:
- - the order (shipping group) is split into two shipments
- - shipment 1 contains one parcel, shipment 2 contains two parcels
- - therefore 3 tracking numbers have to be entered

3. Where is/should tracking numbers be stored? What's the purpose of
those two DB columns?
- - order_item_ship_group.tracking_number
- - shipment_package_route_seg.tracking_number

4. How can a customer be provided with links to track the parcels of his
orders?
We want to send an email to the customer whenever the supplier changes
the status of an order. If any tracking numbers are entered the customer
shall be provided links to the dedicated tracking website of a shipping
method.

Regards,
René
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxgFyEACgkQUXs9EHvIuCoslwCfULpFugMTjO6loPVvQkYciyrT
9fMAnjoPm+uS16yS6oXh0guS83wwNCwg
=A7qp
-END PGP SIGNATURE-


Enabling/Disabling users - email activation

2010-08-02 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The way I thought to implement use case "enable person after clicking
activation link from email":

For as Person, it's Party is PARTY_DISABLED and it's UserLogin is
disabled after registration. Both are enabled only when the user clicks
the activation link from the email that gets send.

When a user isn't activated yet and calls the customer support, they
should be able to find him via the "Find parties" dialog entering
firstname/lastname/email.

1. Is it correct that disabled parties don't show up in the "Find
parties" dialog of the Party Manager?

2. Should only the UserLogin be disabled to implement the activation
email workflow?

Regards,
Rene Scheibe
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxWsgEACgkQUXs9EHvIuCo1VgCeLYduA+EiOsR7XJa/QWSNO6K7
MZIAniJFKrahRfN/3RVABd+NiZPov9OL
=p9CD
-END PGP SIGNATURE-


Best practices: Event vs. Service

2010-07-29 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

What we understand so far:

Event ():
- - close to the http request/response
- - input validations
- - parameter conversions
- - put results into request as attributes

Service ():
- - well-defined IN and OUT parameters via service definition
- - business logic
- - DB operations

Usage statistics within OFBiz:
 1542
 283
 16
 95
runSync  1056
runAsync 171
 1375


Questions (best practices):
1. When shall an event and when service be used?

2. How and where to call services?
- - from controller as an event with type service
- - from within an event


Regards,
Rene
- -- 
René Scheibe * rene.sche...@tngtech.com
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxRaLoACgkQUXs9EHvIuCqSAgCfau9FRmedaREbvbLOZLyta28i
/XgAniNxWw8exGwVWkrSdm2EE5MmpdnE
=2cdf
-END PGP SIGNATURE-


Howto implement SQL EXIST subquery with EntityConditions

2010-07-26 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

At the moment we remove some entities using a hand-crafted SQL statement
which is quite ugly. Unfortunately we don't know any other solution.

Here is the code snippet so far:


String sql =
  "EXISTS (SELECT p.product_id"
+ "  FROM prodcut p"
+ " WHERE p.product_id = product_category_member.product_id"
+ "   AND p.primary_product_category_id <>
product_category_member.product_category_id"
+ "   AND p.facility_id = '" + facilityId + "'"
+ ")";

EntityCondition condition = EntityCondition.makeConditionWhere(sql);
delegator.removeByCondition("ProductCategoryMember", condition);


How is it possible to refactor this using EntityConditions?

Regards,
René
- -- 
René Scheibe * rene.sche...@tngtech.com * +49-176-62192936
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxNqiUACgkQUXs9EHvIuCrXYQCfWCAz2+FyL5/pT1xxySimT2og
nOYAnjRh4990AYLkqv+S2B2SzGJBzWaM
=XT8J
-END PGP SIGNATURE-


Customizing Login Screen for different components

2010-07-16 Thread Rene Scheibe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I have created different components in the hot-deploy folder that
provide a webapp. The require different login credentials.

The question is, how to customize the Login Screen to show the name of
the webapp?

I just figured out that if a user hasn't logged in yet, the screen
"login" from framework/common/widget/CommonScreens.xml is always used. I
don't know how to use another one or to customize it as there no
 elements contained in it.

Cheers,
Rene
- -- 
René Scheibe * rene.sche...@tngtech.com * +49-176-62192936
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxADDMACgkQUXs9EHvIuCqWxwCfcJnLjtziOTnqFz5Z5wsylfk8
nUIAn37tI+3um3U/qUWH/Ul359MFrqyn
=00wx
-END PGP SIGNATURE-