[perpetual accounting] [minor] fixes for test cases

This commit is contained in:
Nabin Hait
2013-08-07 12:33:37 +05:30
parent cc0e2d1740
commit 469ee71615
15 changed files with 117 additions and 133 deletions

View File

@@ -38,7 +38,7 @@ class DocType:
for k in mandatory:
if not self.doc.fields.get(k):
msgprint(k + _(" is mandatory for GL Entry"), raise_exception=1)
# Zero value transaction is not allowed
if not (flt(self.doc.debit) or flt(self.doc.credit)):
msgprint(_("GL Entry: Debit or Credit amount is mandatory for ") + self.doc.account,

View File

@@ -48,8 +48,6 @@ class DocType(SellingController):
self.validate_proj_cust()
self.validate_with_previous_doc()
self.validate_uom_is_integer("stock_uom", "qty")
self.validate_warehouse_with_company([d.warehouse
for d in self.doclist.get({"parentfield": "entries"})])
sales_com_obj = get_obj('Sales Common')
sales_com_obj.check_stop_sales_order(self)