Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Trunk
-
None
Description
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.
Attachments
Attachments
There are no Sub-Tasks for this issue.