Class PO_PurchaseOrder_Bus

Properties

LOCAL cIsSysDB=isFALSE  
LOCAL cMainTable$="PO_PurchaseOrderHeader"  
LOCAL cMemoType$="01"  

memo type for Purchase Order memos

LOCAL cVendorColumns$="VendorType$"  
Vendor columns not in history required from vendor maintenance for copy process
LOCAL cDefaultServiceObject$  
LOCAL cTelephoneCountryCode$  
[string] Country Code to be used when validating telephone number values.
PROPERTY AllowModifyCompleteOrder   * Read Only *
PROPERTY AP_TrackDetailedInvPaymentHist$   * Read Only *
current setting of Track Detailed Invoice/Payment History field in A/P Options
PROPERTY CompletedPO   * Read Only *
PROPERTY CopyOrderType$   * Read Only *
PROPERTY GeneratingOrders  
PROPERTY InvoicedToDate   * Read Only *
PROPERTY LastHeaderErrorMsg$   * Read Only *
PROPERTY LastHeaderErrorNum$   * Read Only *
PROPERTY OldMasterRepeatingOrderNo$   * Read Only *
old master/repeating order number when the value is changed, used in the detail class to adjust qty in the correct master order
PROPERTY OrderBalance   * Read Only *
PROPERTY OrderCancelled   * Read Only *
PROPERTY OrderInUse$   * Read Only *
PROPERTY PO_MPSetup   * Read Only *
PROPERTY PO_RetainReceiptHistory$   * Read Only *
current setting of Retain Receipt History field in P/O Options
PROPERTY POSOFailed$  
PROPERTY POSOLineKeys$  
PROPERTY PrintPurchaseOrders$   * Read Only *
PROPERTY PurgePurchaseOrders  
PROPERTY SOCustPONo$   * Read Only *
PROPERTY SOJobNo$   * Read Only *
PROPERTY SOOrderType$   * Read Only *
PROPERTY UpdatePostingDate$  
PROPERTY UpdateType$  
PROPERTY VendorStatusErrorMsg$   * Read Only *
Error message for inactive Vendor during copy from process

Methods

FUNCTION ChangeOrderStatus(value$)  
FUNCTION CheckPurchaseOrder()  
FUNCTION ConfirmDelete()  
FUNCTION CopyFromInvoiceHistory(invoiceKey$, copyOrdType$, copyMemos$)  

Create purchase order from invoice sourced from P/O in A/P invoice history

ParameterDescription
invoiceKey$ [input, string] key to invoice history header record to copy data from to create p/o
copyOrdType$ [input, string] Order type of purchase order to be created
copyMemos$ [input, string] Y/N value to copy receipt memo to created purchase order
Returns [numeric] 1 for success, 0 for failure, -1 for warning
FUNCTION CopyFromOrder(order$, type$, copyMemos$)  

Create purchase order from an existing purchase order

ParameterDescription
order$ [input, string] purchase order number to copy.
type$ [input, string] order type for the new order.
copyMemo$ [input, string] Y/N value to copy purchase order memos to the new order.
Returns [boolean] True for success, False for failure.
FUNCTION CopyFromOrderHistory(order$, type$, copyMemos$)  

Create purchase order from purchase order in history

ParameterDescription
order$ [input, string] purchase order number to copy.
type$ [input, string] order type for the new order.
copyMemo$ [input, string] Y/N value to copy purchase order memos to the new order.
Returns [boolean] True for success, False for failure.
FUNCTION CopyFromReceiptHistory(receiptKey$, copyOrdType$, copyMemos$)  
FUNCTION CopyFromReceiptHistory(receiptKey$, copyOrdType$, copyMemos$, poNumber$)  

Create purchase order from receipt in purchase order receipt history

ParameterDescription
receiptKey$ [input, string] key to receipt history header record to create in purchase order entry
copyOrdType$ [input, string] Order type of purchase order to be created
copyMemos$ [input, string] Y/N value to copy receipt memo to created purchase order
poNumber$ {optional} [input, string] applied purchase order number to copy receipt history detail from, when blank detail from all applied p/o's will be copied
FUNCTION CopySalesOrder(copyAllLines$, useVendPricing)  
FUNCTION Delete(key$)  

Delete, overridden from PO_CommonEntryVendor

ParameterDescription
key$ [input, string] key value of record to delete.
Returns [boolean] True for success, False for failure
FUNCTION GetContext$(destTable$)  
FUNCTION GetContextSourceTables$(context$)  
FUNCTION GetNextPurchaseOrderNo(value$)  
FUNCTION SalesTaxRecalculation()  

Sales Tax Recalculation, overridden from PO_CommonEntryVendor

Returns [boolean] True for success, False for failure
FUNCTION SetCommonTaxInfo()  

Set common tax info, overridden from PO_CommonEntryVendor

Returns [boolean] True
FUNCTION SetKey(key$)  
FUNCTION UpdateBackOrderLost(value)  
FUNCTION UpdateChangeOrderStatus(newOrderStatus$, newCompletionDate$)  
FUNCTION UpdateNonTaxableAmt(value)  
FUNCTION ValidateCopyFrom(copyFrom$, copyFromNo$, copyFromRcpt$, copyKey$)  
FUNCTION ValidateCopyFrom(copyFrom$, copyFromNo$, copyFromRcpt$, copyKey$, multiPO$)  

Validate Copy From values

ParameterDescription
copyFrom$ [input, string] copy from source.
copyFromNo$ [input/output, string] copy from document number, if copyKey$ is being passed in, copyFromNo$ becomes an output value.
copyFromRcpt$ [input/output, string] copy from receipt type and number (if copy from receipt history), if copyKey$ is being passed in, copyFromRcpt$ becomes an output value.
copyKey$ [input/output, string] key value of record to copy. If value is passed in it will be validated and take precedence over any value passed into copyFromNo$ and copyFromRcpt$.
multiPO$ {optional} [output, string] multiple p/o's applied for copy from, Y or N
Returns [boolean] True for success, False for failure
FUNCTION Write()  

Properties inherited from: PO_PurchaseOrderHistory

cHistoryFreightChange, cHistoryRecalcTaxes, cHistorySchedChange, AP_SalesTaxReporting$, HistoryUpdated, OrderInHistory, OrderLineInHistory, PO_RetainDeletedPurchaseOrders$, PO_RetainDeletedLines$, PO_RetainPurchaseOrderHistory$, PrecisionQty, PrecisionCost, SaveDeleted, SaveDeletedReason$, TaxExemptionChanged

Methods inherited from: PO_PurchaseOrderHistory

AddInHistory(), BackOutHistory(), CheckForHistoryLine(), SetupRetainHistory(), UpdateDetailLineDescription(), CheckForHistory(), DeleteOrderHistory(), SetHistoryCommonTaxInfo(), WriteOrderHistory()