Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 545C2200BE3 for ; Thu, 17 Nov 2016 04:38:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 52D47160B08; Thu, 17 Nov 2016 03:38:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9E94A160B13 for ; Thu, 17 Nov 2016 04:37:59 +0100 (CET) Received: (qmail 45615 invoked by uid 500); 17 Nov 2016 03:37:58 -0000 Mailing-List: contact notifications-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list notifications@ofbiz.apache.org Received: (qmail 45586 invoked by uid 99); 17 Nov 2016 03:37:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2016 03:37:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 682952C0088 for ; Thu, 17 Nov 2016 03:37:58 +0000 (UTC) Date: Thu, 17 Nov 2016 03:37:58 +0000 (UTC) From: "Paul Foxworthy (JIRA)" To: notifications@ofbiz.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OFBIZ-9117) EntityAuto engine override the passed service in parameters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 17 Nov 2016 03:38:00 -0000 [ https://issues.apache.org/jira/browse/OFBIZ-9117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15672583#comment-15672583 ] Paul Foxworthy commented on OFBIZ-9117: --------------------------------------- Hi Deepak and Jacques, I think the problem is in the definition of the createInvoiceContactMech Service: Create a ContactMech for an invoice Why the "OUT" on the contactMechId? The service should *not* be generating a new contactMechId, it's an input to associate an existing ContactMech with the invoice. If we delete the line , will everything then work? I think so. > EntityAuto engine override the passed service in parameters > ----------------------------------------------------------- > > Key: OFBIZ-9117 > URL: https://issues.apache.org/jira/browse/OFBIZ-9117 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS > Affects Versions: Trunk > Reporter: Deepak Dixit > Attachments: errorlog.txt > > > There is an bug in EntityAuto engine, it override the passed service in parameters. > In createInvoiceForOrder service calls the createInvoiceContactMech to crate invoice contactMech for PAYMENT_LOCATION purpose (at line no 357). In case of SO it should use Company PAYMENT_LOCATION contactMech. It get the Company contactMechId correctly and set it createInvoiceContactMech service in context correctly, but system throws foreign key constraints error for incorrect contactMechId. -- This message was sent by Atlassian JIRA (v6.3.4#6332)