dates fix
This commit is contained in:
@@ -4,9 +4,10 @@ from server.backend.api.nomenclature import processing
|
||||
import re
|
||||
import datetime
|
||||
def last_day_of_month(format: str):
|
||||
next_month = datetime.datetime.now().replace(day=28) + datetime.timedelta(days=4)
|
||||
last_day = next_month - datetime.timedelta(days=next_month.day)
|
||||
return last_day.strftime(format)
|
||||
today = datetime.datetime.now()
|
||||
first_day_current_month = today.replace(day=1)
|
||||
last_day_prev_month = (first_day_current_month - datetime.timedelta(days=1)).replace(day=1)
|
||||
return last_day_prev_month.strftime(format)
|
||||
def process_sheet(df, real_arti:str, real_quantity:str, real_sum_1:str):
|
||||
df= df.iloc[2:].reset_index(drop=True)
|
||||
#Выборка
|
||||
|
||||
Reference in New Issue
Block a user