Skip to content

Commit

Permalink
fix: incorrect indicator title for portal sales order (#39247)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Jan 9, 2024
1 parent 5e0d017 commit 2d2ff7c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,17 +582,17 @@ def update_picking_status(self):

def set_indicator(self):
"""Set indicator for portal"""
if self.per_billed < 100 and self.per_delivered < 100:
self.indicator_color = "orange"
self.indicator_title = _("Not Paid and Not Delivered")

elif self.per_billed == 100 and self.per_delivered < 100:
self.indicator_color = "orange"
self.indicator_title = _("Paid and Not Delivered")

else:
self.indicator_color = "green"
self.indicator_title = _("Paid")
self.indicator_color = {
"Draft": "red",
"On Hold": "orange",
"To Deliver and Bill": "orange",
"To Bill": "orange",
"To Deliver": "orange",
"Completed": "green",
"Cancelled": "red",
}.get(self.status, "blue")

self.indicator_title = _(self.status)

def on_recurring(self, reference_doc, auto_repeat_doc):
def _get_delivery_date(ref_doc_delivery_date, red_doc_transaction_date, transaction_date):
Expand Down

0 comments on commit 2d2ff7c

Please sign in to comment.