{% if print_settings.repeat_header_footer %} <div style="margin-top: 0%"> {% set letter_head = frappe.get_doc("Letter Head", doc.letter_head) %} {% if letter_head and not no_letterhead %} {{ letter_head.content }} {% endif %} </div> {% endif %} <div style="width: 100%; margin-top: -1%"> <div class="center"> <h3>PURCHASE ORDER</h3> </div> <h5 class="three" style="margin-top: 20px;"><strong>Vendor Information</strong></h5> <div class="three" style="margin-top: 0%"> <div> <h6 style="margin-bottom: -2px;"><strong>Supplier Name:</strong> {{ doc.supplier }}</h6> {% if doc.supplier_address %} <h6 style="margin-top: 5px; margin-bottom: -2px;"><strong>Phone:</strong> {{ frappe.db.get_value("Address", doc.supplier_address, "phone") or '' }}</h6> <h6 style="margin-top: 5px; margin-bottom: -3px;"><strong>Tax:</strong> {{ frappe.db.get_value("Address", doc.supplier_address, "fax") or '' }}</h6> {% endif %} <h6 style="margin-bottom: 2px;"><strong>Contact Person:</strong> {{ '' }}</h6> <h6 style="margin-bottom: 2px;"><strong>Mobile:</strong> {{ '' }}</h6> <h6 style="margin-bottom: 2px;"><strong>Email:</strong> {{ '' }}</h6> <h5 class="three" style="margin-top: 30px; margin-left: 0px;"><strong>Please Bill To</strong></h5> <h6 style="margin-bottom: -3px; display: flex; justify-content: space-between;"> <span>{{ doc.billing_address_display or '' }}</span> </h6> </div> <div> <h6 style="margin-bottom: 0px;"><strong>LPO Ref. No.:</strong> {{ '' }}</h6> <h6 style="margin-top: 10px; margin-bottom: 0px;"><strong>LPO Date:</strong> {{ '' }}</h6> <h6 style="margin-top: 10px; margin-bottom: 0px;"><strong>MRF Ref:</strong> {{ '' }}</h6> <h6 style="margin-top: 10px; margin-bottom: 0px;"><strong>Subject:</strong> {{ '' }}</h6> <h6 style="margin-top: 5px; margin-bottom: 0px;"><strong>Delivery Date:</strong> {{ doc.schedule_date or '' }}</h6> <h6 style="margin-top: 5px; margin-bottom: 0px;"><strong>Delivery Location:</strong> {{ '' }}</h6> <h6 style="margin-top: 10px; margin-bottom: 0px;"><strong>Delivery Contact Person:</strong> {{ '' }}</h6> <h6 style="margin-top: 10px; margin-bottom: 0px;"><strong>Quotation Ref. No.:</strong> {{ '' }}</h6> <h6 style="margin-top: 10px; margin-bottom: 0px;"><strong>Project Reference:</strong> {{ doc.project or '' }}</h6> </div> </div> {% set total = namespace(amount = 0) %} <table border="1" style="margin-top: 10px; width: 100%" class="border"> <thead style="background-color: lightgrey; border: 1px solid black"> <tr> <th style="color: black; padding: 0; width: 20%">Item#</th> <th style="color: black; padding: 0">Description</th> <th style="color: black; width: 3%">UOM</th> <th style="color: black; width: 3%">Qty</th> <th style="color: black; width: 20%">Unit Rate (QAR)</th> <th style="color: black; width: 20%">Total Rate (QAR)</th> </tr> </thead> <tbody> {% for item in doc.items %} {% set total.amount = item.amount %} <tr> <td>{{ item.item_name }}</td> <td>{{ item.description.replace('\n', '<br>') }}</td> <td>{{ item.uom }}</td> <td>{{ "%.0f" | format(item.qty) }}</td> <td>{{ "%.2f" | format(item.rate) }}</td> <td style="text-align: right;">{{ "{:.2f}".format(frappe.utils.flt(total.amount, doc.precision('total_taxes_and_charges'))) }}</td> </tr> {% endfor %} <tr> <td colspan="5" style="text-align: left;">Grand Total</td> <td colspan="2" style="text-align: right">{{ "{:,.2f}".format(doc.total) }}</td> </tr> <tr> <td colspan="5" style="text-align: left;"> <div><b>Amount in Words: {{ frappe.utils.money_in_words(doc.total) }}</b></div> </td> </tr> </tbody> </table> <div style="margin-top: 15px; width: 100%"> <h6 style="margin-top: 0px; margin-bottom: 0px;"><strong>Currency:</strong> {{ doc.currency or '' }}</h6> <h6 style="margin-top: 10px; margin-bottom: 0px;"><strong>Payment Terms:</strong> {{ '' }}</h6> <h6 style="margin-top: 15px; margin-bottom: 0px;"><strong>Inco Terms:</strong> {{ '' }}</h6> <h6 style="margin-top: 15px; margin-bottom: 0px;"><strong>Mode of Shipment:</strong> {{ '' }}</h6> </div> <div class="bank-details" style="display: flex; flex-direction: column; margin: 10px 2"> <p style="margin: 25px 0;"><strong>Terms and Conditions:</strong></p> <p style="margin: 0px 0;">1. Units and parts are purchased in original, brand new and in good condition.</p> <p style="margin: 0px 0;">2. Any defects or discrepancy found from the ordered materials will be subjected to replacement by the seller.</p> <p style="margin: 0px 0;">3. All units and/or parts should be under warranty or as applicable under law.</p> <p style="margin: 0px 0;">4. Supplier is accepted to deliver the service items and carry out according to the agreed schedule.</p> </div> <div style="width: 100%; margin-top: 12px; margin-bottom: 15px;"> <div style="display: flex; justify-content: space-between; padding: 15px;"> <div style="width: 33%; display: flex; flex-direction: column; align-items: center;"> <p style="font-size: 13px; font-weight: 600; margin-bottom: 50px;">Prepared By</p> <p style="font-size: 13px; font-weight: 600; width: 100%; text-align: center; border-top: 1px solid #24387c; padding-top: 7px;">Procurement Dept.</p> </div> <div style="width: 18%; display: flex; flex-direction: column; align-items: center;"> <p style="font-size: 13px; font-weight: 600; margin-bottom: 50px;">Approved By</p> <p style="font-size: 13px; font-weight: 600; width: 100%; text-align: center; border-top: 1px solid #24387c; padding-top: 7px;">Chairman</p> </div> <div style="width: 18%; display: flex; flex-direction: column; align-items: center;"> <p style="font-size: 13px; font-weight: 600; margin-bottom: 50px;">Approved By</p> <p style="font-size: 13px; font-weight: 600; width: 100%; text-align: center; border-top: 1px solid #24387c; padding-top: 7px;">Dy. Chairman</p> </div> </div> </div> </div> </div>
Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML
. You can also specify the stylesheet information in styles.css
tab and scripts information in scripts.js
tab and start coding.
HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
where <h1>
is the highest important heading and <h6>
is the least important sub-heading.<p>..</p>
tag.<a>
tag.
<a href="https://onecompiler.com/html">HTML online compiler</a>
<img>
tag, where src
attribute consists of image name.<button>..</button>
tag<ul>
for unordered/bullet list and <ol>
for ordered/number list, and the list items are defined in <li>
.<a href="https://onecompiler.com/html">HTML online compiler</a>
CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.
Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.
body{
padding: 25px;
}
.title {
color: #228B22;
font-family: Candara;
}
<table>
tag.<tr>
tag<th>
tag<td>
tag<caption>
tag<script>
is the tag used to write scripts in HTML<script src="script.js"></script>