http://ofbiz.116.s1.nabble.com/jira-Assigned-OFBIZ-10878-Get-billing-party-by-parent-invoice-type-tp4756706.html
> Get billing party by parent invoice type
> ----------------------------------------
>
> Key: OFBIZ-10878
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10878> Project: OFBiz
> Issue Type: Improvement
> Components: accounting
> Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
> Reporter: Ingo Wolfmayr
> Assignee: Akash Jain
> Priority: Major
> Attachments: InvoiceworkerImprove.patch
>
>
> The fallback to get the billing party uses the invoicetypeId form the invoice.
> SALES_INVOICE & PURCHASE_INVOICE
> I would propose to use match it against the parentInvoiceTypeID from INVOICE_TYPE
> CUST_RTN_INVOICE a.s.o. will then work as well.
> Patch is attached. Nothing complicated.