'Returns status based on whether it is draft, submitted, scrapped or depreciated'

def get_status(self):

    if (self.docstatus == 0):
        status = u'Draft'
    elif (self.docstatus == 1):
        status = u'Submitted'
        if self.journal_entry_for_scrap:
            status = u'Scrapped'
        elif (flt(self.value_after_depreciation) <= flt(self.expected_value_after_useful_life)):
            status = u'Fully    Depreciated'
        elif (flt(self.value_after_depreciation) < flt(self.gross_purchase_amount)):
            status = u'Partially    Depreciated'
    elif (self.docstatus == 2):
        status = u'Cancelled'
    return status
