ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepak Dixit (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OFBIZ-9117) EntityAuto engine override the passed service in parameters
Date Mon, 14 Nov 2016 15:26:58 GMT

     [ https://issues.apache.org/jira/browse/OFBIZ-9117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Deepak Dixit updated OFBIZ-9117:
--------------------------------
    Attachment: errorlog.txt

Added log on InvoiceServices.java, 
In this error log system is setting 9000 as contactMechId in createPayToContactMechContext,
but system throws following foreign constraints error 
{quote}
INSERT on table 'INVOICE_CONTACT_MECH' caused a violation of foreign key constraint 'INVOICE_CMECH_CM'
for key (10011).
{quote}



> 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)

Mime
View raw message