Adjustment Reason ABC

All adjustment reason types extend and implement this base class.

Class Methods

The following methods can be invoked on instances of this class.

getForm()

Returns the form for the admin to create credit notes

create(array arrEntity)

Creates a credit note of this reason

getCantBeCreatedFromReceipt()

Returns whether or not this reason is hidden if creating an adjustment from a receipt
Because creating "Bad Debt" from a receipt doesn't make sense.

getCreditIsCalculatedFromReceipts()

Determines if the credit amount is calculated from its allocated receipts or not

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class