HomeHome Product Discus... Product Discus...Payment Registr...Payment Registr...cartesian join?cartesian join?
Previous
 
Next
New Post
4/30/2013 9:58 AM
 
When reviewing subscriptions I am seeing that each subscription is being squared. I made another subscription to test some things and found that under the my registration I showed 4 subscriptions, only two different transaction ID's. Then I added another one to test the theory and now I show 9 of them. Each transaction ID shows with the dates from each other transaction. I have a screenshot showing the issue that I can send if you like.

I'm using DNN Version 7.00.05
SmithRegPro version 4.56
 
New Post
4/30/2013 10:15 AM
 
Looks like an issue in the Smith_ListSubscriptionsByUserName stored procedure. The query does not take the PayHistID into account when doing the join back to Smith_Subscription. Also based on the date being displayed for created it should probably also only pull the first PayHistID or the date may not display properly.
 
New Post
5/1/2013 7:17 AM
 
Hi,
The sproc Smith_ListSubscriptionsByUserName is not a cartesian product. The join fields for the sproc in my database look good as follows:

select c.*, ph.TransID, ph.InvoiceNo, s.*
from dnn_Smith_Subscription s
inner join dnn_Smith_RegPayHist ph
on s.PayHistID = ph.PayHistID
inner join dnn_Smith_RegCustomer c
on s.CustomerID = c.CustomerID
where c.DNNLogin=@dnnLogin
order by ph.paydate desc

Please confirm the sproc in your database is the same.



Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...Payment Registr...Payment Registr...cartesian join?cartesian join?