commit | f4591ecc248d8e1dd6e8f0513827c232015531a8 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Thu May 23 19:07:10 2013 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Thu May 23 19:07:10 2013 +0530 |
tree | a4de60a5475317af9c4b300a00d3bb188d70d5eb | |
parent | 1e2350d1828ef59f036ef9c551d575b4098d71a2 [diff] |
[stock ledger][fix] message for negative qty error
diff --git a/stock/stock_ledger.py b/stock/stock_ledger.py index 2480263..10e490c 100644 --- a/stock/stock_ledger.py +++ b/stock/stock_ledger.py
@@ -35,6 +35,9 @@ "posting_time": "12:00" } """ + global _exceptions + _exceptions = [] + previous_sle = get_sle_before_datetime(args) qty_after_transaction = flt(previous_sle.get("qty_after_transaction"))