销售订单网格问题 magento 2.4.2

时间:2021-04-29 08:35:31

标签: magento magento2 magento-2.0 magento2.3.3 magento-2.3.5

在销售订单网格中的管理员中,我收到以下错误。请指导:

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

我在网格中有一个额外的列,即分配的源。

谢谢, 拉什

1 个答案:

答案 0 :(得分:0)

请检查您数据库中的“allocated_sources”列。我猜它尚未创建,或者您加入了错误的表。