Sales
CLASS SalesOrder

CLASS Sales.SalesOrder IMPLEMENTS PrintDocument

Sales order document.

Superclass for any kind of sales order, whether inside or outside sales. Not used for POS.
Author:
John Green, August 2009

Field Summary
DATE dueDate PUBLIC
           Due date is when the order must be delivered (not just shipped).
 

Property Summary
INT64 CustomerID PUBLIC GET PRIVATE SET
           
CHARACTER PONum PUBLIC GET SET
           Assignment will notify the account manager of the new PO number.
 

Method Summary
CONSTRUCTOR (INT64 customerID)
           A sales order may not be constructed without a CustomerID.
INT64 print ()
           Print the sales order.
VOID print (INT64 printerID)
            Deprecated. Use print() instead.
VOID printPreview ()
           Preview the sales order.
 

Field Detail

dueDate

DATE PUBLIC
Due date is when the order must be delivered (not just shipped).


Property Detail

CustomerID

INT64 PUBLIC GET PRIVATE SET

PONum

CHARACTER PUBLIC GET SET
Assignment will notify the account manager of the new PO number.


Method Detail

CONSTRUCTOR

CONSTRUCTOR(INT64 customerID)
A sales order may not be constructed without a CustomerID.

Parameters:
customerID - The customerID may not be null or invalid.A null or invalid customerID will result in a thrown exception.

print

PUBLIC INT64 print()
Print the sales order.

Calls the UI for print submission, and submits the sales order to the printer selected by the user.
Implements:
PrintDocument (This is an example of an arbitrary tag in AutoDox2.)
Returns:
The print job ID, or zero if canceled.

print

PUBLIC VOID print(INT64 printerID)
Deprecated. Use print() instead.

Send to a specific printer.


printPreview

PUBLIC VOID printPreview()
Preview the sales order.