fix: missing else statement

This commit is contained in:
Mihir Kandoi
2025-04-28 16:08:40 +05:30
parent a9df1f5f6b
commit 8a30a31302

View File

@@ -117,6 +117,8 @@ class Timesheet(Document):
indicator="orange",
alert=True,
)
else:
args.billing_hours = 0
def set_status(self):
self.status = {"0": "Draft", "1": "Submitted", "2": "Cancelled"}[str(self.docstatus or 0)]