Exemplo n.º 1
0
def update_salescyear(store_statues):
    return "{:0,.2f}".format(
        db.filter_dataframe(db.return_sales(), store_statues,
                            db.starting_day_of_cyear,
                            db.ending_day_of_cyear)["sales"].sum())
Exemplo n.º 2
0
def update_saleslyear(store_statues):
    return "{:0,.2f}".format(
        db.filter_dataframe(db.return_sales(), store_statues,
                            db.starting_day_of_lyear,
                            db.ltoday.strftime('%Y-%m-%d'))["sales"].sum())
Exemplo n.º 3
0
def update_salescquarter(store_statues):
    return "{:0,.2f}".format(
        db.filter_dataframe(db.return_sales(), store_statues,
                            db.first_day_of_the_quarter,
                            db.last_day_of_the_quarter)["sales"].sum())
Exemplo n.º 4
0
def update_saleslquarter(store_statues):
    return "{:0,.2f}".format(
        db.filter_dataframe(db.return_sales(), store_statues,
                            db.first_day_of_the_lquarter,
                            db.ltoday.strftime('%Y-%m-%d'))["sales"].sum())
Exemplo n.º 5
0
def update_salescmonth(store_statues):
    return "{:0,.2f}".format(
        db.filter_dataframe(db.return_sales(), store_statues,
                            db.first_day_of_month,
                            db.last_day_of_month)["sales"].sum())
Exemplo n.º 6
0
def update_salescweek(store_statues):
    return "{:0,.2f}".format(
        db.filter_dataframe(db.return_sales(), store_statues, db.startweeks,
                            db.endweeks)["sales"].sum())
Exemplo n.º 7
0
def update_quantity(store_statues, start_date, end_date):
    return db.filter_dataframe(db.return_quantity(), store_statues, start_date,
                               end_date)["quantity"].sum()
Exemplo n.º 8
0
def update_sales(store_statues, start_date, end_date):
    return "{:0,.2f}".format(
        db.filter_dataframe(db.return_sales(), store_statues, start_date,
                            end_date)["sales"].sum())
Exemplo n.º 9
0
def update_orders(store_statues, start_date, end_date):
    return db.filter_dataframe(db.return_orders(), store_statues, start_date,
                               end_date)["orders"].sum()