示例#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())
示例#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())
示例#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())
示例#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())
示例#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())
示例#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())
示例#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()
示例#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())
示例#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()