allow negative qty feature

This commit is contained in:
Nabin Hait
2012-04-18 12:04:20 +05:30
parent 69e7eb4f3d
commit 7afc2124a6
4 changed files with 415 additions and 375 deletions

View File

@@ -34,7 +34,8 @@ keydict = {
'valuation_method': 'default_valuation_method',
'date_format': 'date_format',
'currency_format':'default_currency_format',
'account_url':'account_url'
'account_url':'account_url',
'allow_negative_stock' : 'allow_negative_stock'
}
class DocType:
@@ -66,4 +67,4 @@ class DocType:
get_last_day(get_first_day(ysd,0,11)).strftime('%Y-%m-%d'))
def get_defaults(self):
return webnotes.conn.get_defaults()
return webnotes.conn.get_defaults()