| Transaction Detail Report for Order Number: <%= Request("OrderID") %> |
| Sold To |
| Name: |
<%= RSCustDetail("NAME") %> |
Order Date: |
<%= FormatDateTime(RSCustDetail("ORDER_DATE"),vbShortDate) %> |
| Company: |
<%= RSCustDetail("COMPANY") %> |
Order Time: |
<%= FormatDateTime(RSCustDetail("ORDER_DATE"),vbLongTime) %> |
| Address: |
<%= RSCustDetail("ADDRESS_2") %> |
| Address: |
<%= RSCustDetail("ADDRESS_1") %> |
| City: |
<%= RSCustDetail("CITY") %> |
| State: |
<%= RSCustDetail("STATE") %> |
| Zip: |
<%= RSCustDetail("ZIP") %> |
| Country: |
<%= RSCustDetail("COUNTRY") %> |
| Phone: |
<%= RSCustDetail("PHONE") %> |
Fax: |
<%= RSCustDetail("FAX") %> |
| E-Mail: |
<%= RSCustDetail("E_MAIL") %> |
<% If (RSCustDetail("SHIP_STATE")) <> "" AND (RSCustDetail("SHIP_COUNTRY")) <> "" Then %>
| Ship To |
| Name: |
<%= RSCustDetail("SHIP_NAME") %> |
| Company: |
<%= RSCustDetail("SHIP_COMPANY") %> |
| Address: |
<%= RSCustDetail("SHIP_ADDRESS_2") %> |
| Address: |
<%= RSCustDetail("SHIP_ADDRESS_1") %> |
| City: |
<%= RSCustDetail("SHIP_CITY") %> |
| State: |
<%= RSCustDetail("SHIP_STATE") %> |
| Zip: |
<%= RSCustDetail("SHIP_ZIP") %> |
| Country: |
<%= RSCustDetail("SHIP_COUNTRY") %> |
| Phone: |
<%= RSCustDetail("SHIP_TELEPHONE") %> |
<% End If %>
| Special Instructions |
| <%= RSCustDetail("SHIP_MESSAGE") %> |
<% If Trim(RSCustDetail("PAYMENT_METHOD")) = "Credit Card" Then %>
| Credit Card Information |
| Card Type: |
<%= RSCustDetail("CARD_TYPE") %> |
Card Number: |
<%= RSCustDetail("CARD_NO") %> |
| Card Name: |
<%= RSCustDetail("NAME") %> |
Expiration Date: |
<%= RSCustDetail("CARD_EXP") %> |
<% ElseIf Trim(RSCustDetail("PAYMENT_METHOD")) = "Electronic Check" Then %>
| E-Check Information |
| Customer Name: |
<%= RSCustDetail("NAME") %> |
Bank Name: |
<%= RSCustDetail("BANK_NAME") %> |
| Routing Number: |
<%= RSCustDetail("ROUTING_NO") %> |
Account Number: |
<%= RSCustDetail("CHK_ACCT_NO") %> |
<% End If %>
| Product Code |
Description |
Unit Price |
Quantity |
Total |
<%
RSOrderDetail.MoveFirst
CurrentRecord = 0
Do While NOT RSOrderDetail.EOF
AttA = RSOrderDetail("AttributeA")
AttB = RSOrderDetail("AttributeB")
AttC = RSOrderDetail("AttributeC")
If AttA <> "" Then ATTResponse = AttA End If
If AttB <> "" Then ATTResponse = AttResponse&", "&AttB End If
If AttC <> "" Then ATTResponse = AttResponse&", "&AttC End If
ATTResponse = ATTResponse&" "
%>
| <%= RSOrderDetail("PRODUCT_ID") %> |
<%= ATTResponse&RSOrderDetail("DESCRIPTION") %> |
<%= FormatCurrency(RSOrderDetail("PRICE")) %> |
<%= RSOrderDetail("QUANTITY") %> |
<%= FormatCurrency(RSOrderDetail("TOTAL")) %> |
<%
AttResponse = ""
RSOrderDetail.MoveNext
CurrentRecord = CurrentRecord = 1
Loop
%>
|
| Sub Total: |
<%= RSCustDetail("SUB_TOTAL") %> |
| Tax: |
<%= RSCustDetail("TAX") %> |
| <%=RSCustDetail("SHIPPING_METHOD") %> |
<%=RSCustDetail("SHIPPING_AMT") %> |
<% If HandlingCOD > FormatCurrency(0) Then %>
| Handling/COD Charges: |
<%= HandlingCOD %> |
<% End If %>
| Total |
<%= RSCustDetail("GRAND_TOTAL") %> |
|
|
<% If Trim(RSCustDetail("PAYMENT_METHOD")) = "Electronic Check" and Trim(RSCustDetail("ROUTING_NO")) <> "AUTHNET TRANSACTION" Then %>
|
<% End If %>
<%'***** salesreports report 3 ********************************************************%>
<%'***** salesreports report 3 ********************************************************%>
<%'***** salesreports report 3 ********************************************************%>
<% ' Print Invoice Routine : performed in printinvoice.asp%>
<%'***** salesreports report 4 ********************************************************%>
<%'***** salesreports report 4 ********************************************************%>
<%'***** salesreports report 4 ********************************************************%>
<% ElseIf Request("SalesReport") = "4" Then
'Report 4 is the Sales Transaction Report for summarizing Tax,
'Shipping, Net and Gross Sales for the selected period.
StartDate = Request("StartDate")&" 12:00:01 AM"
EndDate = Request("EndDate")&" 11:59:59 PM"
SQLStmt = "SELECT Sum(CCur(SUB_TOTAL)) AS SumSubTotal, Sum(CCur(TAX)) " _
& "AS SumTax, Sum(CCur(SHIPPING_AMT)) AS SumShipAMT, " _
& "Sum(CCur(GRAND_TOTAL)) AS SumGrandTotal " _
& "FROM Customer WHERE ((ORDER_DATE >= #" & StartDate & "#) AND " _
& "(ORDER_DATE <= #" & EndDate & "#))"
Set RSSummary = Connection.Execute(SQLStmt)
If IsNull (RSSummary("SumGrandTotal")) Then
SumGrandTotal = 0
SumSubTotal = 0
SumShipAMT = 0
SumTax = 0
Else
SumGrandTotal = RSSummary("SumGrandTotal")
SumSubTotal = RSSummary("SumSubTotal")
SumShipAMT = RSSummary("SumShipAMT")
SumTax = RSSummary("SumTax")
End If
SumHandlingCOD = FormatCurrency(SumGrandTotal-(SumSubTotal+SumTax+SumShipAMT))
If SumGrandTotal = "0" Then
%>
| Order ID |
Order Date |
Cust. Trans. No. |
Merch. Trans. No. |
| "><%= RSCCDate("ORDER_ID") %> |
<%= RSCCDate("ORDER_DATE") %> |
<%= RSCCDate("CUST_TRANS_NO") %> |
<%= RSCCDate("MERCH_TRANS_NO") %> |
| AVS Code |
Aux. Msg. |
Action Code |
Retrieval Code |
| <%= RSCCDate("AVS_CODE") %> |
<%= RSCCDate("AUX_MSG") %> |
<%= RSCCDate("ACTION_CODE") %> |
<%= RSCCDate("RETRIEVAL_CODE") %> |
| Auth No. |
Error Msg. |
Error Loc. |
Status |
| <%= RSCCDate("AUTH_NO") %> |
<%= RSCCDate("ERROR_MSG") %> |
<%= RSCCDate("ERROR_LOCATION") %> |
<%= RSCCDate("STATUS") %> |
<%
RSCCDate.MoveNext
CurrentRecord = CurrentRecord = 1
Loop
End If
%>
<%'***** end of the line pal **********************************************************%>
<%'***** end of the line pal **********************************************************%>
<%'***** end of the line pal **********************************************************%>
<% End If %>
<% Connection.Close %>