ImprestVoucher
ImprestVoucher DocType definition.
Attributes: name: Unique identifier for this ImprestVoucher.Source: doctype.py
Fields
Section titled “Fields”| Field | Type | Required | Description | Validators |
|---|---|---|---|---|
| voucher_number | str | Voucher Number | maxLen: 50 | |
| statement | str | Linked ImprestStatement | - | |
| depot | str | Linked Depot | - | |
| voucher_date | date | Voucher Date | - | |
| voucher_type | str | Voucher Type (MR, MP, IR, IP, JV) | - | |
| transaction_type | str | Linked Transaction Type | - | |
| receipt_or_payment | str | R or P | - | |
| party_type | None | Linked Party Type | - | |
| party_code | None | Linked Party Code | - | |
| memo_number | None | Memo Number | - | |
| memo_date | None | Memo Date | - | |
| memo_section | None | Memo Section | - | |
| amount | Decimal | Amount | - | |
| narration | None | Narration | - | |
| is_reconciled | bool | Is Reconciled | - | |
| is_verified | bool | Is Verified | - | |
| payment_details | list[VoucherPaymentDetail] | Payment Details | - |
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