TmpMCRUpSellOrderEntry.validForAxSalesLine Method
Validates whether an AxSalesLine object can be created from this record.
Syntax
public boolean validForAxSalesLine([boolean _showErrors])
Run On
Called
Parameters
- _showErrors
Type: boolean
If true then errors will be shown; otherwise, they will not.
Return Value
Type: boolean
true if an AxSalesLine object can be created from this record; otherwise, false.
Exceptions
Exception | Condition |
---|---|
Error | If the SalesQty is negative throw an error. -or- If there is no SalesQty throw an error. |
Remarks
This validation is not included in the ValidateWrite method because when filling the temp table many fields may be missing values. Much of the same code appears also in the ValidateField method but this must be done in a separate method because it is necessary to validate the whole record.