在销售订单网格中的管理员中,我收到以下错误。请指导:
Column not found: 1054 Unknown column 'allocated_sources' in 'order clause', query was: SELECT `main_table`.*, group_concat(sales_order_item.sku SEPARATOR ", ") AS `skus`, group_concat(sales_order_item.name SEPARATOR ",") AS `names`, `braintree_transaction_details`.`transaction_source` FROM `sales_order_grid` AS `main_table`
LEFT JOIN `sales_order_item` ON sales_order_item.order_id = main_table.entity_id
LEFT JOIN `braintree_transaction_details` ON braintree_transaction_details.order_id = main_table.entity_id GROUP BY `main_table`.`entity_id` ORDER BY allocated_sources ASC
我在网格中有一个额外的列,即分配的源。
谢谢, 拉什
答案 0 :(得分:0)
请检查您数据库中的“allocated_sources”列。我猜它尚未创建,或者您加入了错误的表。