Hello, I am working on a custom report to show all items with stock of less than 10, and list the product's manufacturer for ease of re-ordering.
Here is what I have so far:
Code:
INSERT INTO CustomReport (Name, Description, SQLCommand)
VALUES ('Low Inventory Report', 'Report based on product variant to display inventory with less than 10 items', 'select p.sku,p.name,pv.inventory,p.published from productvariant pv inner join product p on pv.productid=p.productid where inventory < 10 and p.published = 1')
However, I cannot figure out how to list the product's Manufacturer in the report. Help on this would be appreciated!