You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Sebastian Leitner (Updated) (JIRA)" <ji...@apache.org> on 2012/03/27 09:29:31 UTC
[jira] [Updated] (OFBIZ-4762) runSubscriptionAutoReorders places
duplicate orderIds
[ https://issues.apache.org/jira/browse/OFBIZ-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebastian Leitner updated OFBIZ-4762:
-------------------------------------
Attachment: OrderServices.java.patch
> runSubscriptionAutoReorders places duplicate orderIds
> -----------------------------------------------------
>
> Key: OFBIZ-4762
> URL: https://issues.apache.org/jira/browse/OFBIZ-4762
> Project: OFBiz
> Issue Type: Bug
> Components: order
> Affects Versions: SVN trunk
> Reporter: Sebastian Leitner
> Priority: Minor
> Attachments: OrderServices.java.patch
>
>
> The services "runSubscriptionAutoReorders" runs every midnight by default. It checks for expired subscriptions and places a new order to extend them. It fills up a cart from the previous order and places the order.
> It also sets the orderId of the old order at the cart, which is used during creation of the new order. According to this, no new order can be placed because of duplicate-entry exceptions from the database.
> I will attach a patch for this.
> - Sebastian
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira