Class SO_CommonEntry

Known SubClasses

SO_SalesOrder_Bus

Properties

LOCAL cTaxModule$="S/O"  
LOCAL cAllowMultipleEMailAddresses  
PROPERTY AddJobOnTheFly  
PROPERTY AllowBillToOverride   * Read Only *
PROPERTY AR_BillToCustomerRpting$   * Read Only *
PROPERTY AR_Divisions$   * Read Only *
PROPERTY AR_SalesTaxReporting$   * Read Only *
PROPERTY AR_SalespersonCommRpting$   * Read Only *
PROPERTY AR_SegmentForSalesPostings$   * Read Only *
PROPERTY oCustomerChild   * Read Only *

handle to AR_Customer_svc

PROPERTY BillToSvcObj=coBillToSvc  
PROPERTY BM_Integrated$   * Read Only *
PROPERTY BM_UseBillRevisionCodes$   * Read Only *
PROPERTY BM_UseOptionBills$   * Read Only *
PROPERTY CalculateTax  
PROPERTY CalculateFreight  
PROPERTY CreateSOFromRMA  
PROPERTY UserCode$   * Read Only *

User Code associated with UserCreatedKey$

PROPERTY CreditExceeded   * Read Only *
PROPERTY CreditHold   * Read Only *
PROPERTY CreditWarning$   * Read Only *

Credit limit warning message

PROPERTY SplitCommRate1   * Read Only *
PROPERTY UseBillToCustPricing   * Read Only *
PROPERTY CreditCardVoidReqd   * Read Only *

Boolean property, when true a Credit card transaction processed exists that requires a void when deleted

PROPERTY CreditCardPaymentTypeExist   * Read Only *

Boolean property, when true, credit card payment type exists in AR_PaymentType

PROPERTY ACHPaymentTypeExist   * Read Only *

Boolean property, when true, ACH payment type exists in AR_PaymentType

PROPERTY DuplicatePOCheckingObj   * Read Only *
PROPERTY EBM_Integrated$   * Read Only *
PROPERTY IgnoreError   * Read Only *
PROPERTY IM_GLSegmentNumberForWhse$   * Read Only *
PROPERTY IM_IncludePOOrWOInQtyAvailable$   * Read Only *
PROPERTY IM_MultipleWarehouses$   * Read Only *
PROPERTY IM_EnableWarrantyTracking$   * Read Only *
PROPERTY JC_DefaultJobType$   * Read Only *
PROPERTY JC_JobNoFormat$   * Read Only *
PROPERTY JC_PostWIPToGL$   * Read Only *
PROPERTY JC_RecognizeWIPMethod$   * Read Only *

JC Option RecognizeWIPMethod$ ('A'ctual cost or percent of 'E'stimate, only applies when JC_PostWIPToGL$ = Y)

PROPERTY OriginalJobNo$   * Read Only *

Original job number on sales order/invoice

PROPERTY PaymentObj   * Read Only *

handle to SO_InvoicePayment_bus or SO_SalesOrderPayment_bus

PROPERTY PrecisionCost   * Read Only *
PROPERTY PrecisionPrice   * Read Only *
PROPERTY PrecisionQty   * Read Only *
PROPERTY SalesTaxCalcObj   * Read Only *
PROPERTY ShipWeightMax$   * Read Only *
PROPERTY SO_AllowDiscountRate$   * Read Only *
PROPERTY SO_AllowJobsToBeCreated$   * Read Only *
PROPERTY SO_BaseNewPriceLevelRecordsOn$   * Read Only *
PROPERTY SO_CheckQtyOnHand$   * Read Only *
PROPERTY SO_CustomerSplitComOverrideShipTo$   * Read Only *
PROPERTY SO_DefaultSpecialItemsToDS$   * Read Only *
PROPERTY SO_DisplayProfitMargin$   * Read Only *
PROPERTY SO_DisplayUnitCost$   * Read Only *
PROPERTY SO_EnableDefaultPriceLevelByCust$   * Read Only *
PROPERTY SO_EnableLotSerialDist$   * Read Only *
PROPERTY SO_EnableShipping$   * Read Only *
PROPERTY SO_EnablePurchaseControl$   * Read Only *
PROPERTY SO_IncludeBackorderedLines$   * Read Only *
PROPERTY SO_IntegrateInventory$   * Read Only *
PROPERTY SO_IntegrateJobCost$   * Read Only *
PROPERTY SO_PostInvoiceCostsToJC$   * Read Only *
PROPERTY SO_PostSalesByDivision$   * Read Only *
PROPERTY SO_PrintCODLabels$   * Read Only *
PROPERTY SO_PrintPickingSheets$   * Read Only *
PROPERTY SO_ProfitMarginPercent   * Read Only *
PROPERTY SO_RelieveWorkInProcess$   * Read Only *
PROPERTY SO_RequireCostCode$   * Read Only *
PROPERTY SO_RequireFullyDistributedLines$   * Read Only *
PROPERTY SO_RequireJobNo$   * Read Only *
PROPERTY SO_RetainCustLastPurchHistory$   * Read Only *
PROPERTY SO_ShippingIntegrated$   * Read Only *
PROPERTY SO_SpecialItemCOGSAcctKey$   * Read Only *
PROPERTY SO_SpecialItemSalesAcctKey$   * Read Only *
PROPERTY SO_SplitCommissions$   * Read Only *
PROPERTY SO_UseAlternateWhse$   * Read Only *
PROPERTY SO_UseDefaultItemWhse$   * Read Only *
PROPERTY SO_UseShippingCode$   * Read Only *
PROPERTY UseBillToAddress   * Read Only *
PROPERTY UseBillToCreditLimit   * Read Only *
PROPERTY UseBillToCreditHold   * Read Only *
PROPERTY UseBillToTermsCode   * Read Only *
PROPERTY JC_PostDropShipCostsToJC$   * Read Only *
PROPERTY JC_RelieveInventory$   * Read Only *
PROPERTY JC_ValidateCustomer$   * Read Only *
PROPERTY JC_ValidSOCostTypes$   * Read Only *
PROPERTY JC_UseSOAcctsForCOGS$   * Read Only *
PROPERTY JC_UseSOAcctsForSales$   * Read Only *
PROPERTY JC_RetainJobCostHistory$   * Read Only *

Methods

FUNCTION AdjustCalculatedValue(column$, amount)  
FUNCTION AdjustCalculatedValue(column$, amount, nonCol)  
FUNCTION AllowCreditCard()  

Determines if credit card is allowed for this document

Returns [boolean] True if credit card is allowed, False if credit card is not allowed
FUNCTION CheckCopyFromWarehouse(copyFromSource$, copyFromKey$)  

check warehouse codes in the originating document

ParameterDescription
copyFromSource$ [input, string] "O" SO, "H" SO History, "I" invoice entry
copyFromKey$ [input, string] key of originating document
Returns [boolean] Success if all warehouses in the originating document are active for the target document

Warning if inactive/restricted whse exists for the target document and the default whse is active Failure if inactive/restricted whse exists for the target document and the default whse is also inactive/restricted

FUNCTION CheckForUseShipZone()  
FUNCTION CLEAR()  
FUNCTION CopyShipToAddress()  
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 RecalcPriceByTotalQty(date$)  
FUNCTION RecalcPriceByTotalQty(date$, refreshPriceLevel)  

Recalculates UnitPrice on detail lines based on Pricing By Total Quantity

ParameterDescription
date$ [input, date] Needed in CI_ItemPrice method to Calculate Pricing method for date specific pricing
refreshPriceLevel {optional} [input, boolean] If true, refresh customer price level on lines (used when customer number changes)
Returns [boolean] True if prices recalculated, false if calculation not done
FUNCTION RecalculatePricing(div$, cust$)  
FUNCTION RecalculateShipWeight(validateWeight)  

Recalculates the string ShipWeight$ from the numeric field Weight. This will only be done if the CalculateFreight Flag is true and the UseShippingCode option is set to Actual.

ParameterDescription
validateWeight This boolean flag determines whether SetValue() or SetValueNoValidate() will be executed to set the

new value of the field.

Returns TRUE if was able to do recalc
Returns FALSE if was not able to do recalc
FUNCTION SalesTaxCalculation()  
FUNCTION SalesTaxCalculation(calcDiscount)  
FUNCTION SalesTaxReCalculation()  
FUNCTION StripRequiredVal$(extension$)  
FUNCTION UpdateTaxAmounts(rec$, iol$)  
FUNCTION ValidatePurchaseControl(div$, cust$, state$, source$, status$)  
FUNCTION LOCAL CheckForSalesperson(salespersonNo)  
FUNCTION LOCAL PERFORM ClearSalespeople()  
FUNCTION LOCAL ColumnOverrideJobNo(colInfo)  
FUNCTION LOCAL ColumnOverrideSalesPersonNo2(colInfo)  
FUNCTION LOCAL ColumnOverrideSalesPersonNo3(colInfo)  
FUNCTION LOCAL ColumnOverrideSalesPersonNo4(colInfo)  
FUNCTION LOCAL ColumnOverrideSalesPersonNo5(colInfo)  
FUNCTION LOCAL CommitPayment()  

Commit payment records

Returns [boolean] True = success, false = failure
FUNCTION LOCAL GetCustomerFields()  
FUNCTION LOCAL GetCustomerFields(div$, cust$)  
FUNCTION LOCAL GetShipViaFields(shipCode$)  
FUNCTION LOCAL IsJobStillValid(job$, cust$, errmsg$)  
FUNCTION LOCAL LocalizeIOList(objHdle)  
FUNCTION LOCAL LocalizeIOList(objHdle, rec$)  
FUNCTION LOCAL MoveSalespersons()  
FUNCTION LOCAL PostDeleteRec()  

Clean up logic after document is deleted

Returns [boolean] True
FUNCTION LOCAL PostWriteRec()  
FUNCTION LOCAL PurgePDFLog(div$, cust$, task$, doc$)  
FUNCTION LOCAL RetrieveOptions(localOpts$, propOpts$, svcObj, modPfx$)  
FUNCTION LOCAL SetCommonChildColl()  

Create common child collections

Returns [boolean] True
FUNCTION LOCAL SetCurrentKey(key$)  

Initialize payment object for the document

Returns [boolean] True
FUNCTION LOCAL SetDefaultPayment()  

Set payment type based on bill to or sold to customer

Returns [boolean] True = success, False = failure
FUNCTION LOCAL SetOptions()  
FUNCTION LOCAL SetShipZone()  

Set ship zone based on ship to address

Returns [boolean] True
FUNCTION LOCAL ValidateBatchFax(value$)  
FUNCTION LOCAL ValidateBillToCustomerNo(value$)  
FUNCTION LOCAL ValidateBillToDivisionNo(value$)  
FUNCTION LOCAL ValidateBillToZipCode(value$)  
FUNCTION LOCAL ValidateCheckNoForDeposit(value$)  
FUNCTION LOCAL ValidateCommissionRate(value)  
FUNCTION LOCAL ValidateConfirmTo(value$)  
FUNCTION LOCAL ValidateCustomerNo(value$)  
FUNCTION LOCAL ValidateCustomerPoNo(value$)  
FUNCTION LOCAL ValidateDepositAmt(value)  
FUNCTION LOCAL ValidateDiscountAmt(value)  
FUNCTION LOCAL ValidateDiscountRate(value)  
FUNCTION LOCAL ValidateFaxNo(value$)  
FUNCTION LOCAL ValidateFreightAmt(value)  
FUNCTION LOCAL ValidateGroupARSalesTax()  
FUNCTION LOCAL ValidateGroupBillToCustomerRpting()  
FUNCTION LOCAL ValidateGroupCustomerRequired()  
FUNCTION LOCAL ValidateGroupIMIntegrated()  
FUNCTION LOCAL ValidateGroupJCIntegrated()  
FUNCTION LOCAL ValidateGroupMultiWarehouse()  
FUNCTION LOCAL ValidateGroupRMAOrder()  
FUNCTION LOCAL ValidateGroupSalespersonReporting()  
FUNCTION LOCAL ValidateGroupSalespersonRequired()  
FUNCTION LOCAL ValidateJobNo(value$)  
FUNCTION LOCAL ValidateOtherPaymentTypeRefNo(value$)  
FUNCTION LOCAL ValidatePayBalance(value$)  
FUNCTION LOCAL ValidatePaymentType(value$)  
FUNCTION LOCAL ValidateSalesPersonNo(value$)  
FUNCTION LOCAL ValidateSalesPersonNo2(value$)  
FUNCTION LOCAL ValidateSalesPersonNo3(value$)  
FUNCTION LOCAL ValidateSalesPersonNo4(value$)  
FUNCTION LOCAL ValidateSalesPersonNo5(value$)  
FUNCTION LOCAL ValidateShipToCode(value$)  
FUNCTION LOCAL ValidateShipToState(value$)  
FUNCTION LOCAL ValidateShipToZipCode(value$)  
FUNCTION LOCAL ValidateShipVia(value$)  
FUNCTION LOCAL ValidateShipWeight(value$)  
FUNCTION LOCAL ValidateShipZone(value$)  
FUNCTION LOCAL ValidateShipZoneActual(value$)  
FUNCTION LOCAL ValidateSplitCommissions(value$)  
FUNCTION LOCAL ValidateSplitCommRate2(value)  
FUNCTION LOCAL ValidateSplitCommRate3(value)  
FUNCTION LOCAL ValidateSplitCommRate4(value)  
FUNCTION LOCAL ValidateSplitCommRate5(value)  
FUNCTION LOCAL ValidateTaxExemptNo(value$)  
FUNCTION LOCAL ValidateTaxSchedule(value$)  
FUNCTION LOCAL ValidateTermsCode(value$)  
FUNCTION LOCAL ValidateWarehouseCode(value$)  
FUNCTION LOCAL VoidCCTrans(whatToVoid$)  

Void credit card transactions already processed through sage exchange

ParameterDescription
whatToVoid$ [input, string] "OLD" (void transactions already saved) or "NEW" (void unsaved transactions)
Returns [boolean] True = success, False = failure