ImprestStatement
ImprestStatement DocType definition.
Attributes: name: Unique identifier for this ImprestStatement.Source: doctype.py
Fields
Section titled “Fields”| Field | Type | Required | Description | Validators |
|---|---|---|---|---|
| statement_number | str | Statement Number | maxLen: 50 | |
| depot | str | Linked Depot | - | |
| year | str | Linked Fiscal Year | - | |
| statement_type | str | Statement Type (Cash, Imprest) | - | |
| start_date | date | Start Date | - | |
| end_date | date | End Date | - | |
| is_verified | bool | Is Verified | - | |
| is_reconciled | bool | Is Reconciled | - | |
| is_posted_to_gl | bool | Is Posted to GL | - | |
| posting_date | None | Posting Date | - | |
| posting_for_month | None | Posting For Month | - | |
| vouchers | list[ImprestVoucher] | Vouchers | - |
Permissions
Section titled “Permissions”| Role | Create | Delete | Read | Write |
|---|---|---|---|---|
| All | ✓ | ✓ | ✓ | ✓ |
Configuration
Section titled “Configuration”| Setting | Value |
|---|---|
| Submittable | False |
| 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