mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-12 17:23:38 +00:00
Updated Naming Guidelines (markdown)
@@ -33,4 +33,7 @@ DocType names must be:
|
||||
1. Variables representing Document objects must be slugged versions of the DocType [example: `sales_order = frappe.get_doc('Sales Order', 'SO-0001')`]
|
||||
1. Variables representing names, should be suffixed with `_name` [example: `sales_order_name`]
|
||||
1. Child table in a loop can be `d` [example: `for d in sales_order.items`]
|
||||
1. Avoid using numbered variables, like `i1, i2` etc. Use descriptive variables.
|
||||
1. Avoid using numbered variables, like `i1, i2` etc. Use descriptive variables.
|
||||
|
||||
|
||||
> Note: **Title Case** means to capitalize every word except articles (a, an, the), coordinating conjunctions (and, or, but), and (short) prepositions (in, on, for, up, etc.).
|
||||
Reference in New Issue
Block a user