Skip to main content

We are trying to show the ship to on the Sales quote but not having any luck finding the link.  We want to use the ship address in the opportunity and it comes from the CRShippingAddress table.  What would be the best way to link them?  We have tried the @opportunity @quote  but it doubles prints each item in the quote.

Hi @mcoman  Here is the database tables links for getting the Ship-To Address from Sales Quote screen.

Hope this helps!!

 



select * from CROpportunityRevision CRR Inner Join CRAddress CRA on CRR.CompanyID = CRA.CompanyID
and CRR.shipaddressid = CRA.AddressID
Where CRR.CompanyID=2 and CRR.OpportunityID='OP000394'


 

 

 


We are trying to do this within the report writer.  I have tried to use you statement to find the right fields to link within the report writer but not having any luck finding CRaddress.companyid or CROpportunityRevision. companyid.  How would I do this within the report writer?

 

 


Hi @mcoman  It is not required add the CompanyID condition in report, you can just add the below condition and verify

CROpportunityRevision.shipaddressid = CRAddress.AddressID


Naveen thank you.  I ran into this error message while trying to make it work

 

 

The multi-part identifier "CRAddress.AddressID" could not be bound.
The multi-part identifier "CROpportunityRevision.ShipAddressID" could not be bound.
The multi-part identifier "CRAddress.AddressID" could not be bound.
 Send
  Raised At: 2/10/2022 3:42:38 PM Screen: CR.60.45.00    
 Details:

2/10/2022 3:42:38 PM Error:
The multi-part identifier "CRAddress.AddressID" could not be bound.
The multi-part identifier "CROpportunityRevision.ShipAddressID" could not be bound.
The multi-part identifier "CRAddress.AddressID" could not be bound.

   at PX.Common.Async.ProcessnResult](String uniqueKey, Method`1 method, Int64 waitTimeout)
   at PX.Reports.Web.WebReport.Render(HttpResponse response, String format, Int32 pageNumber, Boolean refresh, Boolean isAttacment, String locale)
   at PX.Reports.Web.PageOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
   at PX.Reports.Web.HttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Hi @mcoman Can you please share the Joins? It seems CRAddress table is not added in joins, hence you are getting this issue


I think they are connected

 

 


Hi @mcoman  Can you please share your report here.


Here is the file


Hi @mcoman  I have modified your report and I can see the Ship-To address on the report. 
Please find the table JOINs below.

 

 

 

 

 


I am getting an error message

The multi-part identifier "CRAddress.AddressID" could not be bound.
The multi-part identifier "CROpportunityRevision.ShipAddressID" could not be bound.
 Send
  Raised At: 2/11/2022 2:23:26 PM Screen: CR.60.45.00    
 Details:

2/11/2022 2:23:26 PM Error:
The multi-part identifier "CRAddress.AddressID" could not be bound.
The multi-part identifier "CROpportunityRevision.ShipAddressID" could not be bound.

   at PX.Common.Async.ProcessPResult](String uniqueKey, Method`1 method, Int64 waitTimeout)
   at PX.Reports.Web.WebReport.Render(HttpResponse response, String format, Int32 pageNumber, Boolean refresh, Boolean isAttacment, String locale)
   at PX.Reports.Web.PageOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
   at PX.Reports.Web.HttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

 


@mcoman  For me it is working fine, can you please verify that these changes are effected in your instance?

Save with new version and check once.


Thank you Naveen.  Still no luck.  Confirmed everything was correct. We are using Build 20.208.0031


Hi @mcoman  I have also verified in 20 R2 version and working as expected. Please find attached screenshot and also attached report for your reference.

 


Naveen,

I am not sure how to open this file.  I changed the site and it seems to have pulled the wrong report.  How do I transfer this report to the company I am working with?


Hi @Naveen B anything further you can offer @mcoman ? Thank you!


@mcoman  Open the report file, which I have shared and provided below detials

  • Instance URL, which you wanted to verify
  • Provide the username/password
  • Once you open the report, please SAVE this report to server with new version and verify.

Your patient Naveen.  Thank you


Reply