mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 15:32:14 +00:00
fix: missing else statement
This commit is contained in:
@@ -117,6 +117,8 @@ class Timesheet(Document):
|
|||||||
indicator="orange",
|
indicator="orange",
|
||||||
alert=True,
|
alert=True,
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
args.billing_hours = 0
|
||||||
|
|
||||||
def set_status(self):
|
def set_status(self):
|
||||||
self.status = {"0": "Draft", "1": "Submitted", "2": "Cancelled"}[str(self.docstatus or 0)]
|
self.status = {"0": "Draft", "1": "Submitted", "2": "Cancelled"}[str(self.docstatus or 0)]
|
||||||
|
|||||||
Reference in New Issue
Block a user