DocTypes are the backbone of iVendNext workflows. They define how data is stored, organized, and shown—whether it's Sales Invoices, Inventory, or Projects.
This comprehensive guide will help you:
✔ Understand what DocTypes are and why they matter
✔ Learn how to create and customize DocTypes
✔ Discover advanced features for complex business needs
DocTypes are iVendNext's equivalent of database tables, but with powerful built-in features:
Data Modeling: Define what fields are stored (e.g., Customer Name, Date, Amount)
Business Logic: Control how records behave (validation, calculations, workflows)
User Interface: Determine how data is displayed and interacted with
Common Examples:
Transactions: Sales Orders, Purchase Invoices
Masters: Customers, Items, Suppliers
Setup: Company, Fiscal Year
Every DocType consists of fields that define your data structure:
Naming Series: Auto-generate IDs (SO-0001, INV-2023-001)
Permissions: Control who can create/edit/view
Workflow: Define submission/approval processes
Navigate to:
Setup > Customize > DocType > New
Configure basics:
Name: Logical name (e.g., "Project Task")
Module: Where it appears (e.g., "Projects")
Is Submittable: Requires formal submission
Add fields:
Click "Add Field" for each data element
Set types, labels, and validation rules
Set advanced options:
Is Tree: For hierarchical data (e.g., Organizations)
Track Changes: Maintain version history
Create related records within a parent document:
Sales Order → Order Items
Project → Tasks
Pro Tip: Use Editable Grids for faster data entry in child tables.
Add business logic with JavaScript:
// Auto-calculate total when quantity changes
cur_frm.cscript.qty = function(doc) {
doc.amount = doc.qty * doc.rate;
refresh_field('amount');
};
Enable DocTypes for customer portals:
Check "Allow in Website"
Configure portal views
Plan Before Building
Map all required fields and relationships
Consider reporting needs
Naming Conventions
Use consistent prefixes (e.g., "CUST_" for customer fields)
Avoid spaces in fieldnames
Security First
Set granular permissions early
Use Role Profiles for standardization
Performance Considerations
Limit mandatory fields in high-volume DocTypes
Index frequently searched fields
Create DocTypes for:
Projects (parent)
Tasks (child table)
Time Logs (linked)
Add custom fields to Item DocType:
Storage Locations
Supplier Codes
Custom Attributes
Extend Customer DocType with:
Interaction History
Credit Limits
Preferred Communication Methods
Here’s a quick look at some common issues you might run into.