Lookup field ID
Posted: 2020-09-30 00:03
I have a Invoice Table (with 3 fields InvoiceID, InvoiceDate, CustomerLookup) .
The CustomerLookup is a lookup field of Customer Table which has 2 fields(CustomerID, CustomerName)
I need to get the CustomerID of the customer from a given InvoiceID
$Invoice_from = get_sql_from('Invoice');
$Invoice_id = intval($_REQUEST['InvoiceID']);
$Invoice_fields = get_sql_fields('Invoice');
//Need the syntax to get CustomerID for a given InvoiceID
The CustomerLookup is a lookup field of Customer Table which has 2 fields(CustomerID, CustomerName)
I need to get the CustomerID of the customer from a given InvoiceID
$Invoice_from = get_sql_from('Invoice');
$Invoice_id = intval($_REQUEST['InvoiceID']);
$Invoice_fields = get_sql_fields('Invoice');
//Need the syntax to get CustomerID for a given InvoiceID