fix(pos-profile): Cleanup Form for POS Profile (#16208)

- Remove pos_profile_name field and use `name` as Prompt
- Reorganize form and label sections
- Remove `apply_discount` which was not used
This commit is contained in:
Faris Ansari
2018-12-14 14:19:14 +05:30
committed by Rushabh Mehta
parent 58a4f0e157
commit 4994d84565
7 changed files with 334 additions and 423 deletions

View File

@@ -376,7 +376,7 @@ def setup_pos_profile():
company_abbr = frappe.get_cached_value('Company', erpnext.get_default_company(), "abbr")
pos = frappe.new_doc('POS Profile')
pos.user = frappe.db.get_global('demo_accounts_user')
pos.pos_profile_name = "Demo POS Profile"
pos.name = "Demo POS Profile"
pos.naming_series = 'SINV-'
pos.update_stock = 0
pos.write_off_account = 'Cost of Goods Sold - '+ company_abbr