Purchase Discount option in Features Setup

This commit is contained in:
Nabin Hait
2011-12-14 11:26:46 +05:30
parent f21ceb283c
commit 3a2fcba15f
5 changed files with 25 additions and 5 deletions

View File

@@ -8,7 +8,6 @@ class DocType:
"""
from webnotes.model import default_fields
from webnotes.utils import set_default
for key in self.doc.fields:
if key not in default_fields:
set_default(key, self.doc.fields[key])

View File

@@ -5,14 +5,14 @@
{
'creation': '2011-09-07 11:59:05',
'docstatus': 0,
'modified': '2011-12-06 18:48:53',
'modified': '2011-12-14 11:05:55',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'_last_update': '1323176623',
'_last_update': '1323840127',
'colour': 'White:FFF',
'default_print_format': 'Standard',
'doctype': 'DocType',
@@ -22,7 +22,7 @@
'name_case': 'Title Case',
'section_style': 'Simple',
'show_in_menu': 1,
'version': 24
'version': 26
},
# These values are common for all DocField
@@ -179,7 +179,17 @@
'doctype': 'DocField',
'fieldname': 'fs_discounts',
'fieldtype': 'Check',
'label': 'Discounts'
'label': 'Sales Discounts'
},
# DocField
{
'colour': 'White:FFF',
'description': 'Discount Fields will be available in Purchase Order, Purchase Receipt, Purchase Invoice',
'doctype': 'DocField',
'fieldname': 'fs_purchase_discounts',
'fieldtype': 'Check',
'label': 'Purchase Discounts'
},
# DocField