diff --git a/ns_app/hooks.py b/ns_app/hooks.py index 6435b51..671bac0 100644 --- a/ns_app/hooks.py +++ b/ns_app/hooks.py @@ -20,7 +20,7 @@ fixtures = [ { "dt": "Print Format", "filters": [ - ["name", "=", "Sales Invoice - NS"] + ["name", "=", "NS Invoice"] ] } ] diff --git a/ns_app/print_formats/print_formats/quotataion_ns.html b/ns_app/print_formats/print_formats/quotataion_ns.html new file mode 100644 index 0000000..7080a73 --- /dev/null +++ b/ns_app/print_formats/print_formats/quotataion_ns.html @@ -0,0 +1,95 @@ + + +
+ +
+ {{ doc.company }}+ {% if doc.company_address %} +{{ doc.company_address }} + {% endif %} + |
+
+ QUOTATION+Quote #: {{ doc.name }} +Date: {{ doc.transaction_date }} + {% if doc.valid_till %} +Valid Till: {{ doc.valid_till }} + {% endif %} + |
+
|
+ Quote To: + {{ doc.customer_name }} + {% if doc.customer_address %} + {{ doc.customer_address }} + {% endif %} + |
+
| Item | +Description | +Qty | +Rate | +Amount | +
|---|---|---|---|---|
| {{ row.item_code }} | +{{ row.item_name }} | +{{ row.qty }} | +{{ row.rate }} | +{{ row.amount }} | +
+ Subtotal: + {{ doc.total }} +
+ + {% for tax in doc.taxes %} ++ {{ tax.account_head }} ({{ tax.rate }}%): + {{ tax.tax_amount }} +
+ {% endfor %} + ++ Total: + {{ doc.grand_total }} +
+Terms & Conditions
+{{ doc.terms }}
+{% endif %} + + + diff --git a/ns_app/print_formats/print_formats/quotataion_ns.json b/ns_app/print_formats/print_formats/quotataion_ns.json new file mode 100644 index 0000000..1f351fa --- /dev/null +++ b/ns_app/print_formats/print_formats/quotataion_ns.json @@ -0,0 +1,12 @@ +[ + { + "doctype": "Print Format", + "name": "NS Quotation", + "doc_type": "Quotation", + "standard": "No", + "custom_format": 1, + "disabled": 0, + "print_format_type": "Jinja", + "html": "{% include \"ns_app/print_formats/quotation_ns.html\" %}" + } +] diff --git a/ns_app/print_formats/sales_invoice_ns/sales_invoice_ns.html b/ns_app/print_formats/print_formats/sales_invoice_ns.html similarity index 98% rename from ns_app/print_formats/sales_invoice_ns/sales_invoice_ns.html rename to ns_app/print_formats/print_formats/sales_invoice_ns.html index 9e4737a..754abed 100644 --- a/ns_app/print_formats/sales_invoice_ns/sales_invoice_ns.html +++ b/ns_app/print_formats/print_formats/sales_invoice_ns.html @@ -1,5 +1,5 @@