summaryrefslogtreecommitdiff
path: root/calculate_margin_invoice_v3.ktr
diff options
context:
space:
mode:
Diffstat (limited to 'calculate_margin_invoice_v3.ktr')
-rw-r--r--calculate_margin_invoice_v3.ktr2
1 files changed, 1 insertions, 1 deletions
diff --git a/calculate_margin_invoice_v3.ktr b/calculate_margin_invoice_v3.ktr
index a11ee0d..701de88 100644
--- a/calculate_margin_invoice_v3.ktr
+++ b/calculate_margin_invoice_v3.ktr
@@ -1778,7 +1778,7 @@ from t_sale_order_line tsol
join t_sale_order tso on tso.id = tsol.order_id
join res_partner rp on rp.id = tsol.vendor_id
where 1=1
-and tso.name = ? and tsol.vendor_id = ?</sql>
+and tso.name = ? and tsol.product_id = ?</sql>
<limit>0</limit>
<lookup>param only</lookup>
<execute_each_row>Y</execute_each_row>