merge, update bean validations

This commit is contained in:
Rushabh Mehta
2013-03-01 19:09:06 +05:30
26 changed files with 156 additions and 143 deletions

View File

@@ -23,10 +23,10 @@ class DocType:
def set_status(self):
self.doc.status = {
"0": "Draft",
"1": "Submitted",
"2": "Cancelled"
}[str(self.doc.docstatus or 0)]
0: "Draft",
1: "Submitted",
2: "Cancelled"
}[self.doc.docstatus or 0]
if self.doc.time_log_batch:
self.doc.status="Batched for Billing"