|
@@ -9,6 +9,7 @@ from dataclasses import dataclass
|
|
import shutil
|
|
import shutil
|
|
import pandas as pd
|
|
import pandas as pd
|
|
from pypxlib import Table
|
|
from pypxlib import Table
|
|
|
|
+from beautiful_date import * # @UnusedWildImport
|
|
|
|
|
|
from .db_to_df import Dbtodf
|
|
from .db_to_df import Dbtodf
|
|
|
|
|
|
@@ -303,8 +304,9 @@ class WinMentor(object):
|
|
df_obligcl = df_obligall.loc[mask & (df_obligall['Simbol_x'].isin(clients))]
|
|
df_obligcl = df_obligall.loc[mask & (df_obligall['Simbol_x'].isin(clients))]
|
|
print(df_obligall.head(10))
|
|
print(df_obligall.head(10))
|
|
# prepare sheet
|
|
# prepare sheet
|
|
|
|
+ date = (D.today() - 1 * months).strftime('%m_%Y')
|
|
writer = pd.ExcelWriter(
|
|
writer = pd.ExcelWriter(
|
|
- '{}.xlsx'.format(self._oblig_sheet_name),
|
|
|
|
|
|
+ '{}_{}_PART.xlsx'.format(self._oblig_sheet_name, date),
|
|
engine='xlsxwriter')
|
|
engine='xlsxwriter')
|
|
|
|
|
|
df_obligsp.to_excel(writer, sheet_name='Furnizori', index=False)
|
|
df_obligsp.to_excel(writer, sheet_name='Furnizori', index=False)
|