Dear all,
I am building a custom report for the Invoice form and my sub report cannot be display and I guess the issue is coming from the fact that the InvoiceId can not be pass correctly from my Invoice form to my report.
My report dataset is define as follow :
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" prefiltering="true"> <entity name="invoice"> <attribute name="name" /> <attribute name="customerid" /> <attribute name="new_customerreference" /> <attribute name="statuscode" /> <attribute name="totalamount" /> <attribute name="invoiceid" /> <attribute name="totaltax_base" /> <attribute name="totaltax" /> <attribute name="totalamountlessfreight_base" /> <attribute name="totalamountlessfreight" /> <attribute name="totallineitemdiscountamount_base" /> <attribute name="totallineitemdiscountamount" /> <attribute name="totaldiscountamount_base" /> <attribute name="totaldiscountamount" /> <attribute name="totallineitemamount_base" /> <attribute name="totallineitemamount" /> <attribute name="totalamount_base" /> <attribute name="shippingmethodcode" /> <attribute name="shipto_postalcode" /> <attribute name="shipto_line3" /> <attribute name="shipto_line2" /> <attribute name="shipto_line1" /> <attribute name="shipto_stateorprovince" /> <attribute name="shipto_telephone" /> <attribute name="shipto_name" /> <attribute name="new_shiptocompany" /> <attribute name="new_shiptotmail" /> <attribute name="new_contact" /> <attribute name="new_contactname" /> <attribute name="shipto_freighttermscode" /> <attribute name="shipto_fax" /> <attribute name="shipto_country" /> <attribute name="shipto_city" /> <attribute name="shipto_composite" /> <attribute name="willcall" /> <attribute name="paymenttermscode" /> <attribute name="salesorderid" /> <attribute name="invoicenumber" /> <attribute name="discountamount_base" /> <attribute name="discountamount" /> <attribute name="discountpercentage" /> <attribute name="freightamount_base" /> <attribute name="freightamount" /> <attribute name="totalamountlessfreight" /> <attribute name="duedate" /> <attribute name="datedelivered" /> <attribute name="new_vatpercent" /> <attribute name="billto_postalcode" /> <attribute name="billto_line3" /> <attribute name="billto_line2" /> <attribute name="billto_line1" /> <attribute name="billto_stateorprovince" /> <attribute name="billto_telephone" /> <attribute name="billto_name" /> <attribute name="billto_fax" /> <attribute name="billto_country" /> <attribute name="billto_city" /> <attribute name="billto_composite" /> <order attribute="name" descending="false" /> <filter type="and"> <condition attribute="invoiceid" operator="eq" value="@CRM_InvoiceId" /> </filter> <link-entity name="account" from="accountid" to="customerid" alias="ab"> <attribute name="name" /> <attribute name="accountnumber" /> <attribute name="primarycontactid" /> <attribute name="address2_postalcode" /> <attribute name="address2_telephone2" /> <attribute name="address2_telephone1" /> <attribute name="address2_line3" /> <attribute name="address2_line2" /> <attribute name="address2_line1" /> <attribute name="address2_city" /> <attribute name="address2_country" /> <attribute name="address2_composite" /> <attribute name="address1_postalcode" /> <attribute name="address1_telephone3" /> <attribute name="address1_telephone2" /> <attribute name="address1_line3" /> <attribute name="address1_line2" /> <attribute name="address1_line1" /> <attribute name="address1_city" /> <attribute name="new_vat" /> <attribute name="address1_country" /> <attribute name="address1_composite" /> <filter type="and"> <condition attribute="name" operator="not-null" /> </filter> <link-entity name="contact" from="contactid" to="primarycontactid" alias="ct"> <attribute name="fullname" /> <attribute name="telephone1" /> <attribute name="emailaddress1" /> </link-entity> </link-entity> <link-entity name="salesorder" from="salesorderid" to="salesorderid" visible="false" link-type="outer" alias="ord"> <attribute name="ordernumber" /> </link-entity> </entity> </fetch>
Thanks