[fix] [minor] repost order qty patch

This commit is contained in:
Nabin Hait
2013-10-10 19:04:18 +05:30
parent 5f2bc144e4
commit 0948b2a9d3
4 changed files with 19 additions and 15 deletions

View File

@@ -4,7 +4,7 @@
from __future__ import unicode_literals
import webnotes
from webnotes.utils import cint, getdate, nowdate, cstr, flt, add_days
from webnotes.utils import cint, getdate, cstr, flt, add_days
import datetime
from webnotes import msgprint, _, ValidationError

View File

@@ -3,8 +3,8 @@
from __future__ import unicode_literals
import webnotes
from webnotes import _, msgprint
from webnotes.utils import cint, flt, getdate, cstr
from webnotes import msgprint
from webnotes.utils import flt, getdate
from webnotes.model.controller import DocListController
class DocType(DocListController):
@@ -52,7 +52,7 @@ class DocType(DocListController):
<b>%(item_code)s</b> at Warehouse <b>%(warehouse)s</b> \
as on %(posting_date)s %(posting_time)s""" % self.doc.fields)
sself.doc.fields.pop('batch_bal')
self.doc.fields.pop('batch_bal')
def validate_mandatory(self):
mandatory = ['warehouse','posting_date','voucher_type','voucher_no','actual_qty','company']