Merge branch 'master' into edge

This commit is contained in:
Rushabh Mehta
2013-04-03 10:42:12 +05:30
13 changed files with 267 additions and 102 deletions

View File

@@ -146,11 +146,12 @@ class DocType(StockController):
"posting_date": self.doc.posting_date,
"posting_time": self.doc.posting_time
})
# check valuation rate mandatory
if row.qty != "" and not row.valuation_rate and \
flt(previous_sle.get("qty_after_transaction")) <= 0:
webnotes.msgprint(_("As existing qty for item: ") + row.item_code +
_(" at warehouse: ") + row.warehouse +
_(" is less than equals to zero in the system, \
valuation rate is mandatory for this item"), raise_exception=1)