summaryrefslogtreecommitdiff
path: root/indoteknik_api/models
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-11-19 17:29:27 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-11-19 17:29:27 +0700
commitd64eccc538c5eb130efddb4d1b6c5bfc441957e8 (patch)
tree44c3a20858b4f5955cc44bb9efb43f35bdf673d9 /indoteknik_api/models
parentacc0b8e9f9d6121a072561ac55768ea0f29910fa (diff)
<imam> shipment
Diffstat (limited to 'indoteknik_api/models')
-rw-r--r--indoteknik_api/models/sale_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/models/sale_order.py b/indoteknik_api/models/sale_order.py
index 8e0371a3..54e1fd40 100644
--- a/indoteknik_api/models/sale_order.py
+++ b/indoteknik_api/models/sale_order.py
@@ -33,7 +33,7 @@ class SaleOrder(models.Model):
'id': picking.id,
'name': picking.name,
'tracking_number': picking.delivery_tracking_no or '',
- 'delivered': picking.waybill_id.delivered or picking.driver_arrival_date != False,
+ 'delivered': picking.waybill_id.delivered or picking.driver_arrival_date != False or picking.sj_return_date != False,
})
if sale_order.state == 'cancel':
data['status'] = 'cancel'