diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-04-11 13:56:41 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-04-11 13:56:41 +0700 |
| commit | 3b5871b8c364e819a2fbaf268e4693e848e6af0a (patch) | |
| tree | 82afb56c4252f9241f4d350d174e2a2ac62e5e27 | |
| parent | cc29232e4b935ab2adcc20e177c2bc313cc5f373 (diff) | |
add validation qty available in sales monitoring
| -rwxr-xr-x | indoteknik_custom/models/sale_monitoring_detail.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_monitoring_detail.py b/indoteknik_custom/models/sale_monitoring_detail.py index 553ec21f..82bd5c48 100755 --- a/indoteknik_custom/models/sale_monitoring_detail.py +++ b/indoteknik_custom/models/sale_monitoring_detail.py @@ -76,6 +76,7 @@ class SaleMonitoringDetail(models.Model): WHERE pt.type IN ('consu','product') AND so.state IN ('sale','done') AND so.create_date >= '2022-08-10' + and sol.product_uom_qty > get_qty_available(sol.product_id) ) a WHERE a.qty_so_delivered > a.qty_so_invoiced |
