updated reposting_tool
This commit is contained in:
parent
edddabd4f0
commit
4f8c1a14e6
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user