Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 
Table NamePurposeKeysJoiningComments
ProductStoring product data integrated from ERP with additional fields that might only be stored onlineProductCode 

To get all items that are shown on the website use the where clause:

itemvalid = 1

Generally field names from ERP will be the same online but without the dashes.

ProntoStockWarehouseA mirror of the PRONTO ERP table stock-warehouse-detailStockCode
WhseCode

Product:

Code Block
languagesql
Product LEFT OUTER JOIN ProntoStockWarehouse 
on ProductCode = StockCode



ProntoSalesOrderSales Order header table. Stores both carts online and integrated orders from ERP

SoOrderNo
SoBoSuffix

Customer:

Code Block
languagesql
ProntoSalesOrder LEFT OUTER JOIN Customer 
on ProntoSalesOrder.socustcode = Customer.Code

 


User:

Code Block
languagesql
ProntoSalesOrder LEFT OUTER JOIN [User]
on ProntoSalesOrder.souseridcode= [User].EmailAddress


Filter on orders that were created online and have been integrated to ERP:

ConfirmedbyERP = 1

Filter on orders that got created in ERP:

fwcreatedby = 'WS'

Filter on carts in progress:

fwcreatedby != 'WS' and soordertotalpackages > 0

Filter on Ready to Integrate:

sendrequired = -1

ProntoSalesOrderLineSales order linesSoOrderNo
SoBoSuffix
SolLineSeq

ProntoSalesOrder:

Code Block
languagesql
ProntoSalesOrderline LEFT OUTER JOIN 
ProntoSalesOrder on ProntoSalesOrderline.SoOrderNo = 
ProntoSalesOrder.SoOrderNo
AND 
ProntoSalesOrderline.SoBoSuffix = 
ProntoSalesOrder.SoBoSuffix 

 


Product:

Code Block
languagesql
ProntoSalesOrderline LEFT OUTER JOIN 
product on ProntoSalesOrderline.StockCode = 
Product.ProductCode
 



CustomerPaymentsPayments received either associated with a order or could also be associated with account paymentsRowId

ProntoSalesOrder:

Code Block
languagesql
CustomerPayments LEFT OUTER JOIN Prontosalesorder 
on CustomerPayments.OrderNumber = 
ProntoSalesOrder.SoOrderNo

User:

Code Block
languagesql
CustomerPayments LEFT OUTER JOIN [User]
on CustomerPayments.UserName = 
[user].emailAddress


 Status:

1 = ready to integrate

2 = integrated

9 = payment failed 


Also note for account payments the OrderNumber will be 0 so if you are joining to ProntoSalesOrder suggest to use a LEFT OUTER JOIN instead of LEFT OUTER JOIN

UserAll usersEmailAddress

 ProntoSalesOrder:

Code Block
languagesql
ProntoSalesOrder LEFT OUTER JOIN [User]
on ProntoSalesOrder.souseridcode= [User].EmailAddress

 


Customer:

Code Block
languagesql
[User] LEFT OUTER JOIN Customer on 
[User].CustomerCode = Customer.Code


 Note that all use of User table must use [User] and not User 


Best to ignore guest users which will have emailaddress like 'guest%'

UserSessionTop level details of every session

EmailAddress
SessionStart

User:

Code Block
languagesql
UserSession LEFT OUTER JOIN [User] on UserSession.EmailAddress = 
[User].Emailaddress


Encourage to put a date range on the extract of this as it can be large file
UserSessionLogDetailed information on user session

EmailAddress
SessionStart
Seq

UserSession:

Code Block
languagesql
UserSessionLog LEFT OUTER JOIN UserSession on
UserSession.EmailAddress = 
UserSessionLog.Emailaddress


This table is only stored for maximum of 4 weeks due to its size

Filter on EventType to get details. See below for UserSessionLog Event Types

 

 

 

 

...






UserSessionLog Event Types

EventDescriptionOther Data
CategoryViewA view of a categoryEventKey1 = CategoryCode
Description = Category Name
OrderPlacedThe placing of an orderEventAmount = Order Value
PageViewThe viewing of a pageEventKey1 = Pagename and role
E.G: (PUBLICR) ProductDisplay.aspx means PUBLICR role and productdisplay.aspx is the name of the page
ProductInCartA product being placed in the cart

EventKey1 = ProductCode
EventQty = Qty
EventAmount = Qty * Price

ProductOutOfCartA product being taken out of the cartEventKey1 = ProductCode
ProductSearchA search of products

EventKey1 = Search Key
EventQty = Number of results returned

ProductSoldSale of a productEventKey1 = ProductCode
EventQty = Qty
EventAmount = Qty * Price
ProductViewDetailed view of a productEventKey1 = ProductCode
EventAmount = Price
TraceTrace of milliseconds to create the page

Description = PageName
EventQty = Milliseconds to create the page

...


Related

...

Help

Content by Label
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "reporting" in ("report-creation","field-groups","generating-reports") and type = "page" and space = "KB"
labelsreporting