Fix Indian Bank extraction and add shared multi-format dates for all banks
This commit is contained in:
@@ -683,8 +683,6 @@ def export_excel(output, metas, all_df, unique_df, financial_year="", selected_b
|
||||
exact_export.to_excel(writer, sheet_name="Exact Duplicates", index=False)
|
||||
possible_export.to_excel(writer, sheet_name="Possible Duplicates", index=False)
|
||||
duplicate_summary(all_df).to_excel(writer, sheet_name="Duplicate Summary", index=False)
|
||||
rules_export.to_excel(writer, sheet_name="Classification Rules", index=False)
|
||||
notes.to_excel(writer, sheet_name="Assumptions", index=False)
|
||||
|
||||
# Masters first so validation ranges exist.
|
||||
max_master = max(len(categories), len(parties), len(natures), len(groups), 1)
|
||||
@@ -888,16 +886,7 @@ def export_excel(output, metas, all_df, unique_df, financial_year="", selected_b
|
||||
for name in ("Category Summary", "Party Summary", "Category Party Summary", "Trial Balance"):
|
||||
writer.sheets[name].set_column("A:B", 30)
|
||||
writer.sheets["Trial Balance"].set_column("C:E", 18, money)
|
||||
writer.sheets["Assumptions"].set_column("A:A", 28)
|
||||
writer.sheets["Assumptions"].set_column("B:B", 90)
|
||||
writer.sheets["Masters"].set_column("A:D", 34)
|
||||
ws_rules = writer.sheets.get("Classification Rules")
|
||||
if ws_rules:
|
||||
ws_rules.freeze_panes(1, 0)
|
||||
ws_rules.set_column("A:B", 18)
|
||||
ws_rules.set_column("C:C", 52)
|
||||
ws_rules.set_column("D:F", 32)
|
||||
ws_rules.set_column("G:I", 18)
|
||||
|
||||
# Formula/dropdown support only; not exposed as a visible report sheet.
|
||||
writer.sheets["Masters"].hide()
|
||||
return output
|
||||
|
||||
Reference in New Issue
Block a user