fixes during testing version 5

This commit is contained in:
Nabin Hait
2014-11-26 15:35:08 +05:30
parent 9ed41b3abb
commit 249bbbc56f
21 changed files with 113 additions and 65 deletions

View File

@@ -6,8 +6,8 @@ import frappe
import json
def execute():
existing_allow_negative_stock = frappe.db.get_default("allow_negative_stock")
frappe.db.set_default("allow_negative_stock", 1)
existing_allow_negative_stock = frappe.db.get_value("Stock Settings", None, "allow_negative_stock")
frappe.db.set_value("Stock Settings", None, "allow_negative_stock", 1)
head_row = ["Item Code", "Warehouse", "Quantity", "Valuation Rate"]
stock_reco_to_be_reposted = []
@@ -28,4 +28,4 @@ def execute():
reco.validate()
reco.on_submit()
frappe.db.set_default("allow_negative_stock", existing_allow_negative_stock)
frappe.db.set_value("Stock Settings", None, "allow_negative_stock", existing_allow_negative_stock)