yandex update
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
"Возвраты":15,
|
||||
"Налог_в_руб":64,
|
||||
"Прибыль":65,
|
||||
"Все_удержания_магазина": 54
|
||||
"Все_удержания_магазина": 54,
|
||||
"Себестоимость":23,
|
||||
"Платеж_покупателя":2
|
||||
}
|
||||
}
|
||||
@@ -144,7 +144,7 @@ class Handler(BaseHandler):
|
||||
elif "wb" in self.file_name:
|
||||
pass
|
||||
else:
|
||||
pass
|
||||
self.df = self.df[["Артикул","Платеж_покупателя","Выручка","Выкупы", "Возвраты", "Налог_в_руб", "Все_удержания_магазина", "Все удержания в %", "Прибыль","Маржинальность", "Себестоимость"]]
|
||||
|
||||
|
||||
def saving(self):
|
||||
|
||||
@@ -20,12 +20,12 @@ for file in files:
|
||||
calculate.get_articles_with_sales()
|
||||
case _ if "yandex" in file:
|
||||
print("Это Yandex")
|
||||
calculate = Handler(file)
|
||||
calculate.get_articles_with_sales(jsonread.merchant("yandex"), sheet_name="Отчёт по товарам")
|
||||
calculate = Handler(file, jsonread.merchant("yandex"), sheet_name="Отчёт по товарам")
|
||||
calculate.get_articles_with_sales()
|
||||
case _ if "wb" in file:
|
||||
print("Это WB")
|
||||
calculate = Handler(file)
|
||||
calculate.get_articles_with_sales(jsonread.merchant("wb"), sheet_name="Отчёт товарам")
|
||||
calculate = Handler(file, jsonread.merchant("wb"), sheet_name="Отчёт товарам")
|
||||
calculate.get_articles_with_sales()
|
||||
case _:
|
||||
print("Не распознано")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user