Class SO_SalesOrder_Bus

Inherits

CI_CancelReasonCode_val, CI_Constant, CI_CUConvertData, SO_CommonEntry, SO_SalesOrderHistory, SY_Customization, SY_LineEntryHeader_Bus

Properties

LOCAL cSettingCurrentInvoiceOnly=isFALSE  
LOCAL cSkipCreationOfRecapRecord=isFALSE  
LOCAL cSystemMessage$="5"  
LOCAL cTaxDocType$="SO"  
LOCAL CU_UpdatePartiallyInvoicedOrders$=isNO$  

local variable to hold the value of EnableOrderQuotePartial from CU_Options table

LOCAL cPerformCustomerStatusChecking=isTRUE  
LOCAL cMainTable$="SO_SalesOrderHeader"  
LOCAL cPaymentObjectName$  
PROPERTY AutoCopyLines  

Property when NOT set will skip the populating of lines when validating the Master/Repeating Order number

PROPERTY AR_RetainDetailedInvHist$   * Read Only *
PROPERTY BC_Integrated$   * Read Only *
PROPERTY CopiedOrderHadJob   * Read Only *
PROPERTY CopyLinesForCRM  
PROPERTY CreditCardMsg$   * Read Only *

Message about status of credit card transactions.

PROPERTY CreditCardStatus   * Read Only *

Status of credit card transactions in the order. retSUCCESS when no SPS credit card transaction has been processed. retWARNING when a SPS deposit or pre-authorization transaction has been processed.

PROPERTY CRMOrder  
PROPERTY CRMSetup   * Read Only *
PROPERTY CustomerStatusErrorMsg$  
PROPERTY CustomerPONoErrorMsg$   * Read Only *
PROPERTY DefaultWarehouseCode$   * Read Only *

Default warehouse code

PROPERTY DefaultWarehouseStatus$   * Read Only *

Status of the default warehouse

PROPERTY DefaultWhseRestrictEndDate$   * Read Only *

Restriction End Date, if default warehouse is restricted

PROPERTY DeletingOrder   * Read Only *
PROPERTY DocumentTotal   * Read Only *
PROPERTY EBMEmailReason$  
PROPERTY EBM_SendSCAcceptNotifications$   * Read Only *
PROPERTY FreightCalcMethod$   * Read Only *
PROPERTY HistoryUpdated   * Read Only *
PROPERTY LastCredCardMsg$   * Read Only *
PROPERTY LastInvoicedMsg$   * Read Only *
PROPERTY OrderAlreadyUsed   * Read Only *
PROPERTY OriginalTotal   * Read Only *
PROPERTY PostDeleteMsg$   * Read Only *
PROPERTY PushErrorNum$   * Read Only *
PROPERTY PushErrorMsg$   * Read Only *
PROPERTY PushFailed   * Read Only *
PROPERTY SO_PrintBarCodePickSheets$   * Read Only *
PROPERTY SO_PrintBarCodeSalesOrders$   * Read Only *
PROPERTY SO_PrintSalesOrders$   * Read Only *
PROPERTY SO_PrintShippingLabels$   * Read Only *
PROPERTY SO_RetainOrderQuoteHistory$   * Read Only *
PROPERTY SO_RetainDeletedSalesOrders$   * Read Only *
PROPERTY SO_RetainDeletedLines$   * Read Only *
PROPERTY TaxCalcError  
PROPERTY WasOrder   * Read Only *
PROPERTY WasProspectQuote   * Read Only *
PROPERTY WasQuote   * Read Only *

Methods

FUNCTION AllowCreditCard(field$)  
FUNCTION AllowCreditCard()  

Determines if credit card is allowed for this document

ParameterDescription
field$ {optional} [input, string] field that this check is being used for.
Returns [boolean] True if credit card is allowed, False if credit card is not allowed
FUNCTION ChangeDefaults(record$)  
FUNCTION ChangeDefaults(record$, iolist$)  
FUNCTION CLEAR()  

Clear current order

Returns [numeric] retSUCCESS (1) clear was successful without exceptions

retFAILURE (0) clear was aborted retWARNING (-1) clear was successful with exceptions

FUNCTION CopyFromInvoiceHistory(invoice$, type$, clearJob, copyMemos)  
FUNCTION CopyFromOrder(order$, type$, clearJob, copyMemos)  
FUNCTION CopyFromOrderHistory(order$, type$, clearJob, copyMemos)  
FUNCTION CopyMasterRepeatingOrder(order$)  
FUNCTION CreateOrderFromRMA(RMANo$, UIObj, XpressSalesOrder$)  
FUNCTION CreditCardPreDelete()  

Determines if document has authorized SPS credit card transaction that needs to be voided

Returns [numeric] retSUCCESS (1) no transaction found

retFAILURE (0) transaction found and user has no right to void retWARNING (-1) transaction found and user has right to void

FUNCTION DELETE(key$)  
FUNCTION DELETE(key$, invRec$, invIOL$)  
FUNCTION FreightCalculation(shipCode$, qtyVar$, freight)  
FUNCTION GetContext$(destTable$)  
FUNCTION GetContextSourceTables$(context$)  
FUNCTION GetNextSalesOrderNo(orderNo$)  
FUNCTION MovePrevious()  
FUNCTION PreWrite()  

Used by eBusiness Web Services Preview to calculate totals without writing the order

Returns [numeric] retSUCCESS (1)
FUNCTION PriceRecalculation()  
FUNCTION RecordLock(key$)  
FUNCTION SalesTaxCalculation()  
FUNCTION SalesTaxCalculation(calcDiscount)  
FUNCTION SalesTaxRecalculation()  
FUNCTION SetCommonTaxInfo()  
FUNCTION SetCurrentInvoice(invoice$)  
FUNCTION SkipRecapRecord(val)  
FUNCTION TurnOffRWCIntegrations()  
FUNCTION UpdateTaxAmounts(rec$, iol$)  
FUNCTION ValidateCopyFrom(value$, src$, seq$, job$)  
FUNCTION ValidateGroupCUEntry()  
FUNCTION ValidateGroupCU_CheckCompany()  
FUNCTION ValidateGroupCU_CheckOrderType()  
FUNCTION ValidateGroupCU_Integrated()  
FUNCTION WRITE()  
FUNCTION WRITE(invRec$, invIOL$)  

Write sales order

ParameterDescription
invRec$ {Optional} [input, string] invoice header record (used by sales journal update)
InvIOL$ {Optional} [input, string] invoice header iolist (used by sales journal update)
Returns [boolean] returns success (1) or failure (0)

Properties inherited from: SO_CommonEntry

cTaxModule$, cAllowMultipleEMailAddresses, AddJobOnTheFly, AllowBillToOverride, AR_BillToCustomerRpting$, AR_Divisions$, AR_SalesTaxReporting$, AR_SalespersonCommRpting$, AR_SegmentForSalesPostings$, oCustomerChild, BillToSvcObj, BM_Integrated$, BM_UseBillRevisionCodes$, BM_UseOptionBills$, CalculateTax, CalculateFreight, CreateSOFromRMA, UserCode$, CreditExceeded, CreditHold, CreditWarning$, SplitCommRate1, UseBillToCustPricing, CreditCardVoidReqd, CreditCardPaymentTypeExist, ACHPaymentTypeExist, DuplicatePOCheckingObj, EBM_Integrated$, IgnoreError, IM_GLSegmentNumberForWhse$, IM_IncludePOOrWOInQtyAvailable$, IM_MultipleWarehouses$, IM_EnableWarrantyTracking$, JC_DefaultJobType$, JC_JobNoFormat$, JC_PostWIPToGL$, JC_RecognizeWIPMethod$, OriginalJobNo$, PaymentObj, PrecisionCost, PrecisionPrice, PrecisionQty, SalesTaxCalcObj, ShipWeightMax$, SO_AllowDiscountRate$, SO_AllowJobsToBeCreated$, SO_BaseNewPriceLevelRecordsOn$, SO_CheckQtyOnHand$, SO_CustomerSplitComOverrideShipTo$, SO_DefaultSpecialItemsToDS$, SO_DisplayProfitMargin$, SO_DisplayUnitCost$, SO_EnableDefaultPriceLevelByCust$, SO_EnableLotSerialDist$, SO_EnableShipping$, SO_EnablePurchaseControl$, SO_IncludeBackorderedLines$, SO_IntegrateInventory$, SO_IntegrateJobCost$, SO_PostInvoiceCostsToJC$, SO_PostSalesByDivision$, SO_PrintCODLabels$, SO_PrintPickingSheets$, SO_ProfitMarginPercent, SO_RelieveWorkInProcess$, SO_RequireCostCode$, SO_RequireFullyDistributedLines$, SO_RequireJobNo$, SO_RetainCustLastPurchHistory$, SO_ShippingIntegrated$, SO_SpecialItemCOGSAcctKey$, SO_SpecialItemSalesAcctKey$, SO_SplitCommissions$, SO_UseAlternateWhse$, SO_UseDefaultItemWhse$, SO_UseShippingCode$, UseBillToAddress, UseBillToCreditLimit, UseBillToCreditHold, UseBillToTermsCode, JC_PostDropShipCostsToJC$, JC_RelieveInventory$, JC_ValidateCustomer$, JC_ValidSOCostTypes$, JC_UseSOAcctsForCOGS$, JC_UseSOAcctsForSales$, JC_RetainJobCostHistory$

Methods inherited from: SO_CommonEntry

AdjustCalculatedValue(), AllowCreditCard(), CheckCopyFromWarehouse(), CheckForUseShipZone(), CLEAR(), CopyShipToAddress(), CreditCardPreDelete(), RecalcPriceByTotalQty(), RecalculatePricing(), RecalculateShipWeight(), SalesTaxCalculation(), SalesTaxReCalculation(), StripRequiredVal$(), UpdateTaxAmounts(), ValidatePurchaseControl(), CheckForSalesperson(), PERFORM ClearSalespeople(), ColumnOverrideJobNo(), ColumnOverrideSalesPersonNo2(), ColumnOverrideSalesPersonNo3(), ColumnOverrideSalesPersonNo4(), ColumnOverrideSalesPersonNo5(), CommitPayment(), GetCustomerFields(), GetShipViaFields(), IsJobStillValid(), LocalizeIOList(), MoveSalespersons(), PostDeleteRec(), PostWriteRec(), PurgePDFLog(), RetrieveOptions(), SetCommonChildColl(), SetCurrentKey(), SetDefaultPayment(), SetOptions(), SetShipZone(), ValidateBatchFax(), ValidateBillToCustomerNo(), ValidateBillToDivisionNo(), ValidateBillToZipCode(), ValidateCheckNoForDeposit(), ValidateCommissionRate(), ValidateConfirmTo(), ValidateCustomerNo(), ValidateCustomerPoNo(), ValidateDepositAmt(), ValidateDiscountAmt(), ValidateDiscountRate(), ValidateFaxNo(), ValidateFreightAmt(), ValidateGroupARSalesTax(), ValidateGroupBillToCustomerRpting(), ValidateGroupCustomerRequired(), ValidateGroupIMIntegrated(), ValidateGroupJCIntegrated(), ValidateGroupMultiWarehouse(), ValidateGroupRMAOrder(), ValidateGroupSalespersonReporting(), ValidateGroupSalespersonRequired(), ValidateJobNo(), ValidateOtherPaymentTypeRefNo(), ValidatePayBalance(), ValidatePaymentType(), ValidateSalesPersonNo(), ValidateSalesPersonNo2(), ValidateSalesPersonNo3(), ValidateSalesPersonNo4(), ValidateSalesPersonNo5(), ValidateShipToCode(), ValidateShipToState(), ValidateShipToZipCode(), ValidateShipVia(), ValidateShipWeight(), ValidateShipZone(), ValidateShipZoneActual(), ValidateSplitCommissions(), ValidateSplitCommRate2(), ValidateSplitCommRate3(), ValidateSplitCommRate4(), ValidateSplitCommRate5(), ValidateTaxExemptNo(), ValidateTaxSchedule(), ValidateTermsCode(), ValidateWarehouseCode(), VoidCCTrans()