[pricelist] black code
This commit is contained in:
parent
1d36c3ef6c
commit
32ad4471c6
|
@ -248,7 +248,7 @@ def create_drink(current_session):
|
||||||
Route: ``/pricelist/drinks`` | Method: ``POST``
|
Route: ``/pricelist/drinks`` | Method: ``POST``
|
||||||
|
|
||||||
POST-data :
|
POST-data :
|
||||||
``{
|
``{
|
||||||
article_id?: string
|
article_id?: string
|
||||||
cost_per_package?: float,
|
cost_per_package?: float,
|
||||||
cost_per_volume?: float,
|
cost_per_volume?: float,
|
||||||
|
@ -280,7 +280,7 @@ def create_drink(current_session):
|
||||||
volume: float
|
volume: float
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}``
|
}``
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
current_session: Session sent with Authorization Header
|
current_session: Session sent with Authorization Header
|
||||||
|
@ -300,7 +300,7 @@ def update_drink(identifier, current_session):
|
||||||
Route: ``/pricelist/drinks/<identifier>`` | Method: ``PUT``
|
Route: ``/pricelist/drinks/<identifier>`` | Method: ``PUT``
|
||||||
|
|
||||||
POST-data :
|
POST-data :
|
||||||
``{
|
``{
|
||||||
article_id?: string
|
article_id?: string
|
||||||
cost_per_package?: float,
|
cost_per_package?: float,
|
||||||
cost_per_volume?: float,
|
cost_per_volume?: float,
|
||||||
|
@ -332,7 +332,7 @@ def update_drink(identifier, current_session):
|
||||||
volume: float
|
volume: float
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}``
|
}``
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
identifier: Identifier of Drink
|
identifier: Identifier of Drink
|
||||||
|
@ -511,6 +511,7 @@ def get_pricelist_settings_min_prices(current_session):
|
||||||
min_prices = []
|
min_prices = []
|
||||||
return jsonify(min_prices)
|
return jsonify(min_prices)
|
||||||
|
|
||||||
|
|
||||||
@PriceListPlugin.blueprint.route("/settings/min_prices", methods=["POST"])
|
@PriceListPlugin.blueprint.route("/settings/min_prices", methods=["POST"])
|
||||||
@login_required(permission=permissions.EDIT_MIN_PRICES)
|
@login_required(permission=permissions.EDIT_MIN_PRICES)
|
||||||
def post_pricelist_settings_min_prices(current_session):
|
def post_pricelist_settings_min_prices(current_session):
|
||||||
|
|
Loading…
Reference in New Issue