Skip to content

InvoiceItem

InvoiceItem DocType definition.

Attributes:
name: Unique identifier for this InvoiceItem.

Source: doctype.py

Field Type Required Description Validators
item Link Linked Item ID -
item_name None Item Name -
qty Decimal Quantity -
rate Decimal Rate per unit -
amount Decimal Amount (qty * rate) -
tax_rate Decimal Tax Rate % -
tax_amount Decimal Tax Amount -
sac_code None SAC Code -
igst_rate Decimal IGST Rate % -
igst_amount Decimal IGST Amount -
warehouse None Warehouse ID -
indented_qty Decimal What customer asked for -
issued_qty Decimal What was given -
classification None Substitute, Denial, ForcedSale, Normal -
original_item None What they originally wanted -
denied_qty Decimal indented - issued (if no substitute) -
substituted_qty Decimal if substitute given -
forced_qty Decimal if forced sale -
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