Skip to content

ImprestVoucher

ImprestVoucher DocType definition.

Attributes:
name: Unique identifier for this ImprestVoucher.

Source: doctype.py

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 -
Role Create Delete Read Write
All
Setting Value
Submittable False
Track Changes True

Controller hooks are implemented in *_controller.py files. Available lifecycle hooks:

  • validate() - Called before save, raise exceptions for validation errors
  • before_insert() - Called before inserting a new document
  • after_insert() - Called after successfully inserting
  • before_save() - Called before saving (insert or update)
  • after_save() - Called after saving
  • before_delete() - Called before deleting
  • after_delete() - Called after deleting