You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Vinay Agarwal (JIRA)" <ji...@apache.org> on 2006/08/28 18:24:24 UTC

[jira] Updated: (OFBIZ-80) Bug in Commission code (showing in getCommissionForProduct service)

     [ http://issues.apache.org/jira/browse/OFBIZ-80?page=all ]

Vinay Agarwal updated OFBIZ-80:
-------------------------------

    Attachment: getCommissionForProduct06-08-28.patch

Fixed. It was caused by use of ServiceUtil.getPartyIdCheckSecurity for checking security. This function fails if "system" userLogin is used which has no partyId associated. The service now uses security.hasEntityPermission function.

Regards,
Vinay Agarwal

> Bug in Commission code (showing in getCommissionForProduct service)
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-80
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-80
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: David E. Jones
>         Assigned To: Si Chen
>         Attachments: getCommissionForProduct06-08-28.patch
>
>
> When an order is placed for a Digital Good, or any other ProductType that has isDigital attribute set to "Y", causes an error on checkout when the order is created. With this type of product an invoice is created immediately when the order is placed, and somehow that is getting down to the commission code with insufficient information.
> Here are a couple of messages from the log:
> 143489 (http-0.0.0.0-8443-Processor4) [     ServiceEcaRule.java:134:INFO ] Running Service ECA Service: createCommissionInvoices, triggered by rule on Service: createPaymentApplication
> 143523 (http-0.0.0.0-8443-Processor4) [  ServiceDispatcher.java:412:ERROR] Service Error [getCommissionForProduct]: Party ID missing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira