summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-09-16 08:32:58 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-09-16 08:32:58 +0700
commitf116ba8966efbcc50accac2939a4bd7b53d00578 (patch)
treeffd2ded095a1ae24c872349241ab1ab91c2aeaea
parent51f5f5d390a63601f7ce824bbd8a4ea8163a79ba (diff)
remove query if doesnt have link PO
-rwxr-xr-xindoteknik_custom/models/sale_monitoring_detail.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/indoteknik_custom/models/sale_monitoring_detail.py b/indoteknik_custom/models/sale_monitoring_detail.py
index cb412c98..d80ec99b 100755
--- a/indoteknik_custom/models/sale_monitoring_detail.py
+++ b/indoteknik_custom/models/sale_monitoring_detail.py
@@ -58,8 +58,6 @@ class SaleMonitoringDetail(models.Model):
) a
WHERE
a.qty_so <> a.qty_so_delivered
- OR a.qty_so <> a.qty_so_invoiced
- OR a.qty_so <> a.qty_po
- OR a.qty_so <> a.qty_po_received
+ OR a.qty_so <> a.qty_so_invoiced
)
""" % self._table)