summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-08-24 14:43:27 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-08-24 14:43:27 +0700
commit4c0552bec7c44eb680ae4c0e1e352e14bade9276 (patch)
tree2dab472ab14a32ec402d572dd5711652ba3bf92b
parent4d99d85f04f43b05eded0e25f49f1c3c75ba3314 (diff)
Update manifest stock picking order
-rw-r--r--indoteknik_custom/models/stock_picking.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 3c064f8f..e4a3e09e 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -370,17 +370,17 @@ class StockPicking(models.Model):
arrival_date = self.driver_arrival_date
if self.carrier_id.id == 32: # Pickup Bandengan
- manifest_datas.append(self.create_manifest_data('Sedang disiapkan', self.create_date))
- if departure_date:
- manifest_datas.append(self.create_manifest_data('Siap diambil', departure_date))
if arrival_date:
manifest_datas.append(self.create_manifest_data('Sudah diambil', arrival_date))
- else:
- manifest_datas.append(self.create_manifest_data('Menunggu pickup', self.create_date))
if departure_date:
- manifest_datas.append(self.create_manifest_data('Sedang dikirim', departure_date))
+ manifest_datas.append(self.create_manifest_data('Siap diambil', departure_date))
+ manifest_datas.append(self.create_manifest_data('Sedang disiapkan', self.create_date))
+ else:
if arrival_date:
manifest_datas.append(self.create_manifest_data('Sudah sampai', arrival_date))
+ if departure_date:
+ manifest_datas.append(self.create_manifest_data('Sedang dikirim', departure_date))
+ manifest_datas.append(self.create_manifest_data('Menunggu pickup', self.create_date))
return manifest_datas