Automattic\WooCommerce\Internal\Admin\Reports

HposLegacyOrderReportQueryBuilder::build_parent_orders_join │ private │ WC 1.0

Build the JOIN required to look up parent order data.

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_orders_join();

HposLegacyOrderReportQueryBuilder::build_parent_orders_join() code WC 11.1.2

private function build_parent_orders_join() {
	return array(
		'parent_orders' => 'LEFT JOIN ' . OrderUtil::get_table_for_orders() . ' AS parent_orders ON orders.parent_order_id = parent_orders.id',
	);
}