ExpenseClaim
ExpenseClaim DocType definition.
Source: doctype.py
Fields
Section titled “Fields”| Field | Type | Required | Description | Validators |
|---|---|---|---|---|
| claim_number | str | Claim Number | maxLen: 50 | |
| company | Link | Linked Company | - | |
| employee | str | Linked Employee ID | - | |
| claim_date | date | Claim Date | - | |
| claim_type | str | Claim Type (TA, DA, LTC, Other) | - | |
| cost_center | Link | Linked Cost Center | - | |
| total_claimed_amount | Decimal | Total Claimed Amount | - | |
| total_approved_amount | Decimal | Total Approved Amount | - | |
| narration | None | Narration | - | |
| status | str | Status (Draft, Pending, Approved, Rejected, Paid) | - | |
| expenses | list[ExpenseClaimDetail] | Expense Line Items | - | |
| gl_entry_id | None | Linked GL Entry ID | - |
Configuration
Section titled “Configuration”| Setting | Value |
|---|---|
| Submittable | True |
| Track Changes | True |
Controller
Section titled “Controller”Controller hooks are implemented in *_controller.py files.
Available lifecycle hooks:
validate()- Called before save, raise exceptions for validation errorsbefore_insert()- Called before inserting a new documentafter_insert()- Called after successfully insertingbefore_save()- Called before saving (insert or update)after_save()- Called after savingbefore_delete()- Called before deletingafter_delete()- Called after deleting