chore: translation / semgrep / sider fixes

This commit is contained in:
Ankush Menat
2021-05-23 16:41:03 +05:30
parent c15fef571f
commit 3aed662f46
3 changed files with 10 additions and 10 deletions

View File

@@ -96,7 +96,7 @@ class StockReconciliation(StockController):
def validate_data(self): def validate_data(self):
def _get_msg(row_num, msg): def _get_msg(row_num, msg):
return _("Row # {0}: ").format(row_num+1) + msg return _("Row # {0}:").format(row_num+1) + " " + msg
self.validation_messages = [] self.validation_messages = []
item_warehouse_combinations = [] item_warehouse_combinations = []
@@ -182,7 +182,7 @@ class StockReconciliation(StockController):
validate_cancelled_item(item_code, item.docstatus) validate_cancelled_item(item_code, item.docstatus)
except Exception as e: except Exception as e:
self.validation_messages.append(_("Row # ") + ("%d: " % (row.idx)) + cstr(e)) self.validation_messages.append(_("Row #") + " " + ("%d: " % (row.idx)) + cstr(e))
def update_stock_ledger(self): def update_stock_ledger(self):
""" find difference between current and expected entries """ find difference between current and expected entries