HomeHome Product Discus... Product Discus...SmithCartSmithCartImporting Orders into Quick Books RetailImporting Orders into Quick Books Retail
Previous
 
Next
New Post
3/2/2012 1:14 PM
 

What stored procedure is used to create the quickbooks IIF file that SmithCart exports?

 
I want to import my orders, but I want order details... I need the sales tax paid, items ordered, etc.
 
Thank you for your help!
 
New Post
3/2/2012 1:50 PM
 
The stored procedure used to create the quickbooks IIF file is "Smith_QBListCustOrders"


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
3/3/2012 9:01 AM
 

OK-

When I run that Stored Procedure against my database I get results that include all the fields I'm interested in... tax, address, shipping address, order items, etc. However, when I click "Export Orders" in smith cart I only get this:

!TRNS TRNSID TRNSTYPE DATE ACCNT NAME AMOUNT DOCNUM

 

!SPL SPLID TRNSTYPE DATE ACCNT NAME AMOUNT DOCNUM
!ENDTRNS
TRNS PAYMENT 02/29/12 Undeposited Funds Jamison Smith 29.90 21
SPL PAYMENT 02/29/12 Accounts Receivable Jamison Smith -29.90 21
ENDTRNS
 
Is the code only including those certain fields above when creating the IIF file?  Because, the results of the stored procedure are much different... the sql inside that SP is:
 
select distinct c.customerid,c.firstname,c.lastname,c.email,c.Address1,c.address2,c.City,c.state,c.country,
c.zip,c.homephone,c.workphone,o.orderdate,o.status,convert(varchar,o.taxtotal) as taxtotal,o.shipmethod,
o.orderid,convert(varchar,o.shippingtotal) as shippingtotal,convert(varchar,o.handlingcharge) as handlingcharge,
convert(varchar,o.discount) as discount, ph.billingaddress,ph.billingzip,ph.acctno,ph.exproute,convert(varchar,ph.amount) as amount,
ph.payhistid,ph.authcode,ph.notes,ph.status as paystatus,ph.billingname,ph.billingcity,ph.billingstate,ph.billingcountry
 
from smith_storeorders o
left outer join smith_customer c on
o.customerid = c.customerid
left outer join smith_payhist ph on
o.payhistid = ph.payhistid  
where o.status = 'Open' and o.portalid = @PortalId     
order by c.customerid desc
 
---
 
Please help me understand...
 
Thank you,
Jones
 
 

 

 
New Post
3/6/2012 3:16 PM
 

Are you clicking the export customers or export orders button?  If you are clicking the export orders button there is an additional sproc that is run titled "QBListOrderDetails"

 


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartImporting Orders into Quick Books RetailImporting Orders into Quick Books Retail