Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1926 Представления

I need to sum the total quantity of several products by id, I have achieved only that the total quantity of all products in general is added, but I need to sum product by product and then show the total quantity of product 1 and the total quantity of product 2 and so on

Аватар
Отменить
Лучший ответ

Hi,

You can use read_group function to achieve this

Example

order_line.read_group([], ["quantity", "product_id"], ["product_id"])

Regards

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
мая 23
1838
1
июн. 22
2392
1
июн. 22
1523
1
апр. 24
1290
1
окт. 23
1428