updated reposting_tool

This commit is contained in:
nabinhait 2011-06-24 15:26:37 +05:30
parent edddabd4f0
commit 4f8c1a14e6

View File

@ -110,13 +110,13 @@ class DocType:
def repair_all_bins(self): def repair_all_bins(self):
bins = sql("select name from tabBin") bins = sql("select name from tabBin")
cnt = 0 cnt = 0
for bin in bins[0]: for bin in bins:
if cnt % 20 == 0: if cnt % 20 == 0:
sql("commit") sql("commit")
sql("start transaction") sql("start transaction")
cnt += 1 cnt += 1
self.repair_bin(bin) self.repair_bin(bin[0])
# ============================================================================= # =============================================================================
def repair_opening_bal(self, d, acc_obj, past_yr, fiscal_yr): def repair_opening_bal(self, d, acc_obj, past_yr, fiscal_yr):