From 3335015e0539280cc89cefae537282d5b3a4e9bb Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Fri, 14 Oct 2022 10:23:44 +0700 Subject: Update sale_monitoring_detail.py --- indoteknik_custom/models/sale_monitoring_detail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/sale_monitoring_detail.py b/indoteknik_custom/models/sale_monitoring_detail.py index ade67b09..d766cecd 100755 --- a/indoteknik_custom/models/sale_monitoring_detail.py +++ b/indoteknik_custom/models/sale_monitoring_detail.py @@ -44,7 +44,7 @@ class SaleMonitoringDetail(models.Model): p.id AS product_id, sol.product_uom_qty AS qty_so, sol.qty_delivered AS qty_so_delivered, - 0 as qty_to_delivered, + get_qty_to_delivered(sol.id) as qty_to_delivered, sol.qty_invoiced AS qty_so_invoiced, so.date_order AS date_order, get_qty_po(so.id, sol.product_id) AS qty_po, -- cgit v1.2.3