Store location name, group name and tax group description in order
Also delete compiled entry JS and add a Makefile
This commit is contained in:
+12
-3
@@ -37,9 +37,15 @@ def new_order():
|
||||
barcode = request.form["barcode"]
|
||||
name = request.form["name"]
|
||||
sales_units = int(request.form["sales-units"])
|
||||
group_id = int(request.form["group"])
|
||||
location_id = int(request.form["location"])
|
||||
tax_group_id = int(request.form["tax-group"])
|
||||
group_id = int(request.form["group-id"])
|
||||
# group_name, location_name and tax_group_description are not
|
||||
# necessarily needed here but storing them makes it easier to
|
||||
# render the list of orders.
|
||||
group_name = request.form["group-name"]
|
||||
location_id = int(request.form["location-id"])
|
||||
location_name = request.form["location-name"]
|
||||
tax_group_id = int(request.form["tax-group-id"])
|
||||
tax_group_description = request.form["tax-group-description"]
|
||||
net_unit_price = float(request.form["net-unit-price"])
|
||||
gross_unit_price = float(request.form["gross-unit-price"])
|
||||
except:
|
||||
@@ -52,8 +58,11 @@ def new_order():
|
||||
"name": name,
|
||||
"sales_units": sales_units,
|
||||
"group_id": group_id,
|
||||
"group_name": group_name,
|
||||
"location_id": location_id,
|
||||
"location_name": location_name,
|
||||
"tax_group_id": tax_group_id,
|
||||
"tax_group_description": tax_group_description,
|
||||
"net_unit_price": net_unit_price,
|
||||
"gross_unit_price": gross_unit_price
|
||||
})
|
||||
|
||||
-12418
File diff suppressed because it is too large
Load Diff
@@ -8,9 +8,9 @@
|
||||
<th>Barcode</th>
|
||||
<th>Name</th>
|
||||
<th>Eingekauft</th>
|
||||
<th>Gruppen-ID</th>
|
||||
<th>Raum-ID</th>
|
||||
<th>Steuergruppen-ID</th>
|
||||
<th>Gruppe</th>
|
||||
<th>Raum</th>
|
||||
<th>Steuergruppe</th>
|
||||
<th>EK-Preis (Netto)</th>
|
||||
<th>VK-Preis (Brutto)</th>
|
||||
<th>Aktionen</th>
|
||||
@@ -20,9 +20,9 @@
|
||||
<td><code>{{ cart_item.barcode }}</code></td>
|
||||
<td>{{ cart_item.name }}</td>
|
||||
<td class="--align-right">{{ cart_item.sales_units }}</td>
|
||||
<td class="--align-right">{{ cart_item.group_id }}</td>
|
||||
<td class="--align-right">{{ cart_item.location_id }}</td>
|
||||
<td class="--align-right">{{ cart_item.tax_group_id }}</td>
|
||||
<td class="--align-right">{{ cart_item.group_name }} ({{ cart_item.group_id }})</td>
|
||||
<td class="--align-right">{{ cart_item.location_name }} ({{ cart_item.location_id }})</td>
|
||||
<td class="--align-right">{{ cart_item.tax_group_description }} ({{ cart_item.tax_group_id }})</td>
|
||||
<td class="--align-right">{{ format_currency(cart_item.net_unit_price) }}</td>
|
||||
<td class="--align-right">{{ format_currency(cart_item.gross_unit_price) }}</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user