Class SY_SalesTaxCalculation_bus

Known SubClasses

RA_GenerateTransactions_upd

Properties

LOCAL cMainTable$="*SKIP*"  
LOCAL cIsSysDB  
LOCAL cDocumentType$  
LOCAL cInquiry=isFALSE  
LOCAL cMemoryFile=isFALSE  
LOCAL cPerformCreditChecking  
LOCAL cUseTax=isFALSE  
LOCAL cUseTax$=isNO$  
PROPERTY SkipTaxCalculation  

Methods

FUNCTION AddInLine(TaxClass$, Amount, SubjectToDiscount, SubjectToExemption$)  
FUNCTION AddInLine(TaxClass$, Amount, SubjectToDiscount, SubjectToExemption$, UseTax$)  
FUNCTION BackoutLine(TaxClass$, Amount, SubjectToDiscount, SubjectToExemption$)  
FUNCTION BackoutLine(TaxClass$, Amount, SubjectToDiscount, SubjectToExemption$, UseTax$)  
FUNCTION BackoutTax(TaxClass$, TaxAmt, Taxable, nonTaxable, nonRecoverable, Amount)  
FUNCTION CalculateNonRecoverable()  
FUNCTION CalculateTax(TaxAmount, TaxableTotal, NontaxableTotal, TaxableSalesSubjToDisc, NonTaxableSalesSubjToDisc)  
FUNCTION CalculateTax(TaxAmount, TaxableTotal, NontaxableTotal)  
FUNCTION ChangeExempt(TaxAmount, TaxableTotal, NontaxableTotal, TaxableSalesSubjToDisc, NonTaxableSalesSubjToDisc, FreightAmt)  
FUNCTION ChangeExemptAP(TaxClass$, TaxAmount, TaxableTotal, NontaxableTotal, nonRecoverable, InvoiceTotal, FreightAmt)  
FUNCTION ChangeExemptPO(TaxAmount, TaxableTotal, NontaxableTotal, nonRecoverable, FreightAmt)  
FUNCTION ChangeExemptTaxDetail(TaxAmount, TaxableTotal, NontaxableTotal, TaxableSalesSubjToDisc, NonTaxableSalesSubjToDisc, FreightAmt)  
FUNCTION ChangeExemptTaxDetailAP(TaxClass$, TaxAmount, TaxableTotal, NontaxableTotal, InvoiceTotal, FreightAmt, nonRecoverable)  
FUNCTION ChangeSchedule(TaxAmount, TaxableTotal, NontaxableTotal, TaxableSalesSubjToDisc, NonTaxableSalesSubjToDisc, FreightAmt)  
FUNCTION ChangeScheduleAP(TaxClass$, TaxAmount, TaxableTotal, NontaxableTotal, nonRecoverable, InvoiceTotal, FreightAmt)  
FUNCTION ChangeSchedulePO(TaxAmount, TaxableTotal, NontaxableTotal, nonRecoverable, FreightAmt)  
FUNCTION ClearSetMode()  
FUNCTION ClearTaxDetail(Document$)  
FUNCTION ClearTaxes()  
FUNCTION CommitRow()  
FUNCTION CommitTaxes()  
FUNCTION CompareExempt(toDocument$)  

Compares the TaxCodes established on the current document to a source document to insure the tax exemption status agrees

ParameterDescription
toDocument$ [input,string] source documentto compare
Returns [boolean] - retSUCCESS (1) when TaxExemption status (mull or not) for each TaxCode on the current document agrees with a source document
Returns [boolean] - retFAILURE (0) when TaxExemption status (mull or not) for each TaxCode on the current document does not agree with a source document
Returns [boolean] - retFAILURE (0) when test could not be properly executed
FUNCTION CopyExempt(Document$, From$)  
FUNCTION CopyExempt(Document$, From$, ToDocument$)  
FUNCTION DeleteDocFromPhysical(Document$)  
FUNCTION DeleteDocument(Document$)  
FUNCTION SetCommonInfo(CustomerDivision$, Customer$, ShipTo$, Document$, DocumentType$, TaxSchedule$, DiscountPct, TaxReporting, RetentionInvoice, RetentionPct, Adjustment, DocDetailBusObj)  
FUNCTION SetCommonInfo(CustomerDivision$, Customer$, ShipTo$, Document$, DocumentType$, TaxSchedule$, DiscountPct, TaxReporting, RetentionInvoice, RetentionPct, Adjustment, DocDetailBusObj, tmpPhysicalTaxDetailFH, tmpPhysicalTaxSummaryFH, tmpKeyDefFH)  
FUNCTION StaxDiscount(DiscountPct, TotalAmount)  
FUNCTION StaxRetention(RetentionPct)  
FUNCTION TaxTablesChanged()  
FUNCTION ValidateGroupConsumerPII()  

Group validation for fields that belong to the ConsumerPII group. Will not allow changes after the encryption of consumer PII process has been completed on a record.

Returns [Boolean]
ValueDescription
retFAILURE (0) - if NOT(NUL(EncryptedVals$))
retSUCCESS (1) - if NUL(EncryptedVals$)
FUNCTION ValidateGroupNotInquiry()  
FUNCTION LOCAL PERFORM CalcTaxOnTax()  
FUNCTION LOCAL PERFORM ChangeScheduleExempt()  
FUNCTION LOCAL PERFORM ChangeScheduleExemptAP()  
FUNCTION LOCAL PERFORM ChangeScheduleExemptHistory()  
FUNCTION LOCAL PERFORM CheckExempt()  
FUNCTION LOCAL PERFORM CheckMax()  
FUNCTION LOCAL GetMax(taxCode$)  
FUNCTION LOCAL InitMemoryTable(physicalFH, key$)  
FUNCTION LOCAL SetChildColl()  
FUNCTION LOCAL PERFORM Total()  
FUNCTION LOCAL ValidateNonRecoverableAmt(value)  
FUNCTION LOCAL ValidateSalesTaxAmt(value)  
FUNCTION LOCAL ValidateTaxAmt(value)  
FUNCTION LOCAL ValidateUseTaxAmt(value)  
FUNCTION LOCAL PERFORM ZeroTaxSummary()  

Properties inherited from: CI_CustomerNo_val

cAllowCashCust, cPerformCreditChecking, CreditExceeded, CreditHold, PerformCreditChecking, AllowCashCustomer

Properties inherited from: CI_VendorNo_val

HoldPayment, SeparateCheck

Properties inherited from: SY_Maint

cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest

Properties inherited from: SY_MaintSet

FileChanged

Methods inherited from: CI_CustomerNo_val

GetNextCustomerNo(), ClassOverrideCustomerNo(), ClassValidateCustomerNo()

Methods inherited from: CI_VendorNo_val

ClassValidateVendorNo()

Methods inherited from: SY_Maint

ChangedRecordCompare(), ChangedRecordInfo(), Clear(), ClearRecord(), ConfirmDelete(), CopyFrom(), ExportToCSV(), GetColumnInfo(), GetColumnProperties$(), GetDefaults(), GetOrigRecord$(), GetPropertyValue(), GetValidationGroups$(), ResetDocDateWarnState(), SetCopyKeyValue(), SetDocDateWarnDisplayed(), SetDocDateWarnOff(), SetKey(), SetKeyValue(), SetPartialRecord(), SetRecord(), SetToReadOnly(), SetValue(), SetValues(), Write(), ActivityLogCreateFile(), ActivityLogPrepare(), ActivityLogSetMessage$(), ActivityLogWrite(), CallScript(), CheckForAdvancedFieldSettings(), CheckForScripts(), CheckNullRequiredField(), PERFORM ChildValidate(), ClassValidateDate(), ClassValidateTelephoneNo(), ClearSetFiles(), ColInfoInitAll(), ColInfoInitDefaults(), CommitRow(), GetPropertyCommon(), InitColInfo(), InitScriptEngine(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule()

Methods inherited from: SY_MaintSet

ClearSetFiles(), CommitRow(), QuickRowLoad(), ResetRow(), SeedDetailRow(), SetFilter(), SetMode()