diff --git a/config.toml b/config.toml index fdb455e..86beb1f 100644 --- a/config.toml +++ b/config.toml @@ -50,3 +50,4 @@ DocNumFilter = [ [logger.root] level = "DEBUG" handlers = ["console", "file"] + \ No newline at end of file diff --git a/rec_records.py b/rec_records.py new file mode 100644 index 0000000..2072e2e --- /dev/null +++ b/rec_records.py @@ -0,0 +1,21 @@ +from pandas import DataFrame, Series, read_sql_query, read_excel +import sqlite3 as sqll +import sqlalchemy as sqa +import argparse + +def drop_unnamed(df: DataFrame): + cols = [c for c in df.columns if "Unnamed" in c] + df.drop(cols, axis=1, inplace=True) + +parser = argparse.ArgumentParser( + prog="HoldReconcilerRecord", +) +parser.add_argument("-i", "--input") +args = parser.parse_args() +# Resolution col + +no_match: DataFrame = read_excel(args.input, sheet_name="No Match") +amt_mm: DataFrame = read_excel(args.input, sheet_name="Amount Mismatch") +drop_unnamed(no_match) +drop_unnamed(amt_mm) +print(no_match) \ No newline at end of file diff --git a/reconcile_holds.py b/reconcile_holds.py index 23b9230..63bbe6b 100644 --- a/reconcile_holds.py +++ b/reconcile_holds.py @@ -16,6 +16,7 @@ from datetime import datetime as dt [ ] Record reconciled transaction (connect with VBA) [ ] Check GP against the database [ ] Check OB against the database +[ ] Add resolution column to error sheets """ # Custom module for reconciliation