yandex update

This commit is contained in:
2026-05-09 12:01:34 +03:00
parent f6ea373632
commit bb3f66c3b2
3 changed files with 8 additions and 6 deletions

View File

@@ -32,6 +32,8 @@
"Возвраты":15, "Возвраты":15,
"Налог_в_руб":64, "Налог_в_руб":64,
"Прибыль":65, "Прибыль":65,
"Все_удержания_магазина": 54 "Все_удержания_магазина": 54,
"Себестоимость":23,
"Платеж_покупателя":2
} }
} }

View File

@@ -144,7 +144,7 @@ class Handler(BaseHandler):
elif "wb" in self.file_name: elif "wb" in self.file_name:
pass pass
else: else:
pass self.df = self.df[["Артикул","Платеж_покупателя","Выручка","Выкупы", "Возвраты", "Налог_в_руб", "Все_удержания_магазина", "Все удержания в %", "Прибыль","Маржинальность", "Себестоимость"]]
def saving(self): def saving(self):

View File

@@ -20,12 +20,12 @@ for file in files:
calculate.get_articles_with_sales() calculate.get_articles_with_sales()
case _ if "yandex" in file: case _ if "yandex" in file:
print("Это Yandex") print("Это Yandex")
calculate = Handler(file) calculate = Handler(file, jsonread.merchant("yandex"), sheet_name="Отчёт по товарам")
calculate.get_articles_with_sales(jsonread.merchant("yandex"), sheet_name="Отчёт по товарам") calculate.get_articles_with_sales()
case _ if "wb" in file: case _ if "wb" in file:
print("Это WB") print("Это WB")
calculate = Handler(file) calculate = Handler(file, jsonread.merchant("wb"), sheet_name="Отчёт товарам")
calculate.get_articles_with_sales(jsonread.merchant("wb"), sheet_name="Отчёт товарам") calculate.get_articles_with_sales()
case _: case _:
print("Не распознано") print("Не распознано")