%
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' System : StoreFront 2000 Version 4.04.0
' Date : 1.6.2000
' Author : LaGarde, Incorporated
' Description : StoreFront Invoice Printing Routines
' Notes : There are no configurable elements in this file.
'
' COPYRIGHT NOTICE
'
' The contents of this file is protected under the United States
' copyright laws as an unpublished work, and is confidential and
' proprietary to LaGarde, Incorporated. Its use or disclosure in
' whole or in part without the expressed written permission of
' LaGarde, Incorporated is expressely prohibited.
'
' (c) Copyright 1998 by LaGarde, Incorporated. All rights reserved.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
%>
| Sold To |
| <%= RSCustDetail("NAME") %> |
Order Date: <%= FormatDateTime(RSCustDetail("ORDER_DATE"),vbShortDate) %> |
| <%= RSCustDetail("COMPANY") %> |
Order No: <%=RSCustDetail("Customer_ID") %> |
| <%= RSCustDetail("ADDRESS_2") %> |
Payment Method: <%= Trim(RSCustDetail("PAYMENT_METHOD")) %> |
<%= RSCustDetail("ADDRESS_1") %> |
| <%= RSCustDetail("CITY")&", "&RSCustDetail("STATE")&" "&RSCustDetail("ZIP")&" "&RSCustDetail("COUNTRY")%> |
<%
Dim ShipMsg
ShipMsg = RSCustDetail("SHIP_MESSAGE")
If ShipMsg <> "" Then
%>
| Special Instructions: |
| <%= ShipMsg %> |
<% End If %>
<% If (RSCustDetail("SHIP_STATE")) <> "" OR (RSCustDetail("SHIP_COUNTRY")) <> "" Then %>
| Ship To |
| <%= RSCustDetail("SHIP_NAME") %> |
| <%= RSCustDetail("SHIP_COMPANY") %> |
| <%= RSCustDetail("SHIP_ADDRESS_2") %> |
| <%= RSCustDetail("SHIP_ADDRESS_1") %> |
| <%= RSCustDetail("SHIP_CITY") %> |
| <%= RSCustDetail("SHIP_STATE") %> |
| <%= RSCustDetail("SHIP_ZIP") %> |
| <%= RSCustDetail("SHIP_COUNTRY") %> |
<% End If %>
<% 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: |
<%= FormatCurrency(RSCustDetail("SUB_TOTAL")) %> |
| Tax: |
<%= FormatCurrency(RSCustDetail("TAX")) %> |
| <%=RSCustDetail("SHIPPING_METHOD") %> |
<%= FormatCurrency(RSCustDetail("SHIPPING_AMT")) %> |
<% If HandlingCOD > FormatCurrency(0) Then %>
| Handling/COD Charges: |
<%= FormatCurrency(HandlingCOD) %> |
<% End If %>
| Total |
<%= FormatCurrency(RSCustDetail("GRAND_TOTAL")) %> |
|
<%
Connection.Close
Set Connection = Nothing
%>