diff --git a/models/doctype/Item/Item.js b/models/doctype/Item/Item.js index 35634d43..afa494e1 100644 --- a/models/doctype/Item/Item.js +++ b/models/doctype/Item/Item.js @@ -1,5 +1,11 @@ import frappe, { t } from 'frappe'; +const itemForMap = { + purchases: t`Purchases`, + sales: t`Sales`, + both: t`Both`, +}; + export default { name: 'Item', label: t`Item`, @@ -42,6 +48,14 @@ export default { default: 'Product', options: ['Product', 'Service'], }, + { + fieldname: 'for', + label: t`For`, + fieldtype: 'Select', + options: Object.keys(itemForMap), + map: itemForMap, + default: 'both', + }, { fieldname: 'incomeAccount', label: t`Income`, @@ -115,6 +129,7 @@ export default { 'rate', 'unit', 'itemType', + 'for', 'tax', 'description', 'incomeAccount',