nice features

This commit is contained in:
MassiveAtoms
2020-05-25 02:15:12 -03:00
parent 6acc614785
commit 175c4d9631
18 changed files with 149 additions and 25 deletions

View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% block title %}<title>Houtmarkt</title>{% endblock %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<!-- Add additional CSS in static file -->
{% load static %}
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-sm-2">
</div>
<div class="col-sm-10 ">{% block content %}{% endblock %}</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,53 @@
{% extends "base_generic.html" %}
{% block content %}
{% load static %}
<h1>FACTUUR HOUTMARKTNAAM</h1>
<table>
<tr>
<th>Klant</th>
<th>{{factuur.Klant_ID}}</th>
</tr>
<tr>
<td>Datum</td>
<td>TBD</td>
</tr>
</table>
<br>
<br>
<h2>Order</h2>
<table>
<tr>
<th>Product</th>
<th>Aantal</th>
<th>Prijs</th>
</tr>
{% for order in factuur.Orders.all %}
<tr>
<td>{{order.Voorraad_ID}}</td>
<td>{{order.Amount}}</td>
<td>SRD {{order.Prijs}}</td>
</tr>
{% endfor %}
<tr>
<td>Subotaal</td>
<td>
</td>
<td>SRD {{factuur.Subtotal}}</td>
</tr>
<tr>
<td>Korting</td>
<td>{{factuur.Korting_percent}} %</td>
<td>SRD {{korting}}</td>
</tr>
<tr>
<td>Totaal</td>
<td></td>
<td>SRD {{factuur.Total}}</td>
</tr>
</table>
{% endblock %}