Automattic\WooCommerce\Internal\Admin\Reports

HposLegacyOrderReportQueryBuilder::build_parent_op_data_join │ private │ WC 1.0

Build the JOIN required to look up the parent order's operational-data row.

Method of the class: HposLegacyOrderReportQueryBuilder{}

No Hooks.

Returns

array<string,string>. JOIN keyed by alias.

Usage

// private - for code of main (parent) class only
$result = $this->build_parent_op_data_join();

HposLegacyOrderReportQueryBuilder::build_parent_op_data_join() code WC 11.1.2

private function build_parent_op_data_join() {
	return array(
		'parent_op_data' => 'LEFT JOIN ' . OrdersTableDataStore::get_operational_data_table_name() . ' AS parent_op_data ON parent_orders.id = parent_op_data.order_id',
	);
}