Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
352ce987e5
17
README.md
17
README.md
@ -1,5 +1,7 @@
|
||||
# ERPNext - Open Source + SAAS ERP
|
||||
|
||||
Version 2.0
|
||||
|
||||
Includes Accounting, Inventory, CRM, Sales, Purchase, Projects, HRMS
|
||||
|
||||
Built on Python / MySQL / wnframework
|
||||
@ -9,7 +11,7 @@ Built on Python / MySQL / wnframework
|
||||
|
||||
## Platform
|
||||
|
||||
ERPNext is built on [wnframework](https://github.com/webnotes/wnframework)
|
||||
ERPNext is built on [wnframework](https://github.com/webnotes/wnframework) (Version 2.0)
|
||||
|
||||
## Download and Install
|
||||
|
||||
@ -20,9 +22,18 @@ For download and install details, please go to [erpnext.org](http://erpnext.org)
|
||||
- [User / Functional](http://groups.google.com/group/erpnext-user-forum)
|
||||
- [Technical](http://groups.google.com/group/wnframework)
|
||||
|
||||
## Contributing
|
||||
## Changes from wnframework version 1.7
|
||||
|
||||
If you interested in contributing to ERPNext, you must go thorough the wnframework. The code is not easily understandable, but we are making a lot of effort to do it.
|
||||
To update from wnframework version 1.
|
||||
|
||||
1. set your html folder to the root of erpnext (rather than wnframework)
|
||||
2. symlink wnframework as 'lib':
|
||||
|
||||
ln -s path/to/wnframework lib
|
||||
|
||||
3. to setup the versions db, run:
|
||||
|
||||
python lib/wnf.py setup
|
||||
|
||||
## License
|
||||
|
||||
|
1
cgi-bin/README.md
Normal file
1
cgi-bin/README.md
Normal file
@ -0,0 +1 @@
|
||||
## Deprecated
|
83
cgi-bin/getfile.cgi
Executable file
83
cgi-bin/getfile.cgi
Executable file
@ -0,0 +1,83 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
try:
|
||||
|
||||
import sys, os
|
||||
|
||||
sys.path.append('../lib/py')
|
||||
sys.path.append('../erpnext')
|
||||
|
||||
def getTraceback():
|
||||
import sys, traceback, string
|
||||
type, value, tb = sys.exc_info()
|
||||
body = "Traceback (innermost last):\n"
|
||||
list = traceback.format_tb(tb, None) \
|
||||
+ traceback.format_exception_only(type, value)
|
||||
body = body + "%-20s %s" % (string.join(list[:-1], ""), list[-1])
|
||||
return body
|
||||
|
||||
import cgi
|
||||
import webnotes
|
||||
import webnotes.auth
|
||||
import webnotes.utils
|
||||
import webnotes.utils.file_manager
|
||||
import webnotes.db
|
||||
import webnotes.defs
|
||||
|
||||
sys.path.append(webnotes.defs.modules_path)
|
||||
|
||||
form = cgi.FieldStorage()
|
||||
webnotes.form_dict = {}
|
||||
|
||||
for each in form.keys():
|
||||
webnotes.form_dict[each] = form.getvalue(each)
|
||||
|
||||
n = form.getvalue('name')
|
||||
|
||||
# authenticate
|
||||
webnotes.auth.HTTPRequest()
|
||||
|
||||
# get file
|
||||
res = webnotes.utils.file_manager.get_file(n)
|
||||
|
||||
fname = res[0]
|
||||
if hasattr(res[1], 'tostring'):
|
||||
fcontent = res[1].tostring()
|
||||
else:
|
||||
fcontent = res[1]
|
||||
|
||||
if form.getvalue('thumbnail'):
|
||||
tn = webnotes.utils.cint(form.getvalue('thumbnail'))
|
||||
try:
|
||||
from PIL import Image
|
||||
import cStringIO
|
||||
|
||||
fobj = cStringIO.StringIO(fcontent)
|
||||
image = Image.open(fobj)
|
||||
image.thumbnail((tn,tn*2), Image.ANTIALIAS)
|
||||
outfile = cStringIO.StringIO()
|
||||
|
||||
if image.mode != "RGB":
|
||||
image = image.convert("RGB")
|
||||
|
||||
image.save(outfile, 'JPEG')
|
||||
outfile.seek(0)
|
||||
fcontent = outfile.read()
|
||||
except:
|
||||
pass
|
||||
|
||||
import mimetypes
|
||||
print "Content-Type: %s" % (mimetypes.guess_type(fname)[0] or 'application/unknown')
|
||||
print "Content-Disposition: filename="+fname.replace(' ', '_')
|
||||
print "Cache-Control: max-age=3600"
|
||||
print
|
||||
print fcontent
|
||||
|
||||
except Exception, e:
|
||||
print "Content-Type: text/html"
|
||||
try:
|
||||
out = {'message':'', 'exc':getTraceback().replace('\n','<br>')}
|
||||
except:
|
||||
out = {'exc': e}
|
||||
print
|
||||
print str(out)
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:34',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-09-13 17:35:54',
|
||||
'modified': '2011-09-15 15:04:42',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
@ -143,6 +143,17 @@
|
||||
'validation_logic': 'docstatus=1'
|
||||
},
|
||||
|
||||
# Table Mapper Detail
|
||||
{
|
||||
'doctype': 'Table Mapper Detail',
|
||||
'from_field': 'delivery_note_details',
|
||||
'from_table': 'Delivery Note Detail',
|
||||
'match_id': 1,
|
||||
'to_field': 'entries',
|
||||
'to_table': 'RV Detail',
|
||||
'validation_logic': 'amount > ifnull(billed_amt, 0) and docstatus = 1'
|
||||
},
|
||||
|
||||
# Table Mapper Detail
|
||||
{
|
||||
'doctype': 'Table Mapper Detail',
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-09-01 15:48:10',
|
||||
'creation': '2010-09-01 15:47:59',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-09-01 14:24:38',
|
||||
'modified': '2011-09-15 15:04:43',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'ashwini@webnotestech.com'
|
||||
},
|
||||
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:35',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-09-13 17:37:09',
|
||||
'modified': '2011-09-15 15:04:43',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
@ -116,6 +116,17 @@
|
||||
'validation_logic': 'docstatus =1'
|
||||
},
|
||||
|
||||
# Table Mapper Detail
|
||||
{
|
||||
'doctype': 'Table Mapper Detail',
|
||||
'from_field': 'po_details',
|
||||
'from_table': 'PO Detail',
|
||||
'match_id': 1,
|
||||
'to_field': 'entries',
|
||||
'to_table': 'PV Detail',
|
||||
'validation_logic': 'ifnull(billed_qty,0) < qty'
|
||||
},
|
||||
|
||||
# Table Mapper Detail
|
||||
{
|
||||
'doctype': 'Table Mapper Detail',
|
||||
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:35',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-09-13 17:27:32',
|
||||
'modified': '2011-09-15 15:04:44',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:36',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-09-13 17:36:31',
|
||||
'modified': '2011-09-15 15:04:45',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
@ -145,6 +145,17 @@
|
||||
'validation_logic': 'docstatus=1'
|
||||
},
|
||||
|
||||
# Table Mapper Detail
|
||||
{
|
||||
'doctype': 'Table Mapper Detail',
|
||||
'from_field': 'sales_order_detail',
|
||||
'from_table': 'Sales Order Detail',
|
||||
'match_id': 1,
|
||||
'to_field': 'entries',
|
||||
'to_table': 'RV Detail',
|
||||
'validation_logic': 'docstatus = 1'
|
||||
},
|
||||
|
||||
# Table Mapper Detail
|
||||
{
|
||||
'doctype': 'Table Mapper Detail',
|
||||
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:34',
|
||||
'docstatus': 0,
|
||||
'modified': '2009-12-30 16:55:33',
|
||||
'modified': '2011-09-15 15:04:42',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-09-01 15:48:10',
|
||||
'creation': '2010-09-01 15:47:59',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-09-01 14:25:40',
|
||||
'modified': '2011-09-15 15:04:42',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'ashwini@webnotestech.com'
|
||||
},
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-12-14 10:23:25',
|
||||
'creation': '2010-12-14 10:33:11',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-02-12 18:31:40',
|
||||
'modified_by': 'umair@iwebnotes.com',
|
||||
'modified': '2011-09-15 15:04:44',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'harshada@webnotestech.com'
|
||||
},
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:35',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-01-27 16:03:20',
|
||||
'modified': '2011-09-15 15:04:42',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:35',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-02-12 12:41:03',
|
||||
'modified': '2011-09-15 15:04:43',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'jai@webnotestech.com'
|
||||
},
|
||||
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:36',
|
||||
'docstatus': 0,
|
||||
'modified': '2009-12-21 13:16:59',
|
||||
'modified': '2011-09-15 15:04:45',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:34',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-09-13 17:28:37',
|
||||
'modified': '2011-09-15 15:04:42',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-09-01 15:48:10',
|
||||
'creation': '2010-09-01 15:47:59',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-09-01 14:23:28',
|
||||
'modified': '2011-09-15 15:04:43',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'ashwini@webnotestech.com'
|
||||
},
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-09-01 15:48:10',
|
||||
'creation': '2010-09-01 15:47:59',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-09-01 14:25:08',
|
||||
'modified': '2011-09-15 15:04:43',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'harshada@webnotestech.com'
|
||||
},
|
||||
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:35',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-09-13 17:26:55',
|
||||
'modified': '2011-09-15 15:04:43',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-12-15 08:39:22',
|
||||
'creation': '2010-12-14 17:56:41',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-09-13 17:26:01',
|
||||
'modified': '2011-09-15 15:04:44',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
@ -107,6 +107,15 @@
|
||||
'to_field': 'naming_series'
|
||||
},
|
||||
|
||||
# Field Mapper Detail
|
||||
{
|
||||
'doctype': 'Field Mapper Detail',
|
||||
'from_field': 'customer_address',
|
||||
'map': 'Yes',
|
||||
'match_id': 0,
|
||||
'to_field': 'delivery_address'
|
||||
},
|
||||
|
||||
# Field Mapper Detail
|
||||
{
|
||||
'doctype': 'Field Mapper Detail',
|
||||
|
@ -40,7 +40,7 @@ class DocType:
|
||||
|
||||
|
||||
# update valuation for post dated entry
|
||||
if actual_qty:
|
||||
if actual_qty and serial_no:
|
||||
# check actual qty with total number of serial no
|
||||
self.check_qty_with_serial_no()
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:34',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-05-18 13:37:43',
|
||||
'modified_by': 'umair@iwebnotes.com',
|
||||
'modified': '2011-09-15 15:04:41',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'ashwini@webnotestech.com'
|
||||
},
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:35',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-05-18 11:05:26',
|
||||
'modified_by': 'umair@iwebnotes.com',
|
||||
'modified': '2011-09-15 15:04:44',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:36',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-05-18 13:35:55',
|
||||
'modified_by': 'umair@iwebnotes.com',
|
||||
'modified': '2011-09-15 15:04:45',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'ashwini@webnotestech.com'
|
||||
},
|
||||
|
||||
|
@ -9,7 +9,6 @@ sys.path.append('lib/py')
|
||||
sys.path.append('erpnext')
|
||||
|
||||
import webnotes
|
||||
import webnotes.defs
|
||||
|
||||
webnotes.form = cgi.FieldStorage()
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>ERPNext</title>
|
||||
<meta name="author" content="">
|
||||
<script type="text/javascript">window._version_number="33"
|
||||
<script type="text/javascript">window._version_number="34"
|
||||
|
||||
wn={}
|
||||
wn.provide=function(namespace){var nsl=namespace.split('.');var l=nsl.length;var parent=window;for(var i=0;i<l;i++){var n=nsl[i];if(!parent[n]){parent[n]={}}
|
||||
|
@ -14,13 +14,7 @@ wn.require('lib/js/legacy/wnf.compressed.js');
|
||||
wn.sb.set_value(40);
|
||||
|
||||
wn.require('lib/css/legacy/default.css');
|
||||
wn.sb.set_value(60);
|
||||
|
||||
// startup
|
||||
wn.require('index.cgi?cmd=webnotes.startup')
|
||||
wn.require('erpnext/startup/startup.js')
|
||||
wn.require('erpnext/startup/startup.css')
|
||||
wn.sb.set_value(90);
|
||||
wn.sb.set_value(70);
|
||||
|
||||
$(document).bind('ready', function() {
|
||||
startup();
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user