smmBusRelTable::convert2Customer Method
Converts a business relation to a type customer.
Syntax
server public static NoYes convert2Customer(
smmBusRelTable _smmBusRelTable,
[CustAccount custAccountNo,
boolean showCustAccountDialog])
Run On
Server
Parameters
- _smmBusRelTable
Type: smmBusRelTable Table
The record to convert.
- custAccountNo
Type: CustAccount Extended Data Type
The customer account number.
- showCustAccountDialog
Type: boolean
A Boolean value that specifies whether to show a customer account dialog box; optional.
Return Value
Type: NoYes Enumeration
A NoYes enumeration value that indicates whether the record was converted.
Remarks
This method finds the customer account by first using the number sequence setup. Second, the business relation is converted to a customer. Finally, the values from the CustAccount table are inserted to the new record. This method will throw an update exception if the update cannot be performed.