From 27490ba68ebc905d519f674eb7173d845f388790 Mon Sep 17 00:00:00 2001 From: maniamartial Date: Fri, 12 Apr 2024 17:44:00 +0300 Subject: [PATCH] Update on pf sales invoice --- .../sales_e_invoice/e-invoice.html | 4 +- .../print_format/sales_invoice_pf/__init__.py | 0 .../sales_invoice_pf/sales_invoice_pf.html | 268 ++++++++++++++++++ .../sales_invoice_pf/sales_invoice_pf.json | 32 +++ 4 files changed, 302 insertions(+), 2 deletions(-) create mode 100644 burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/__init__.py create mode 100644 burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.html create mode 100644 burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.json diff --git a/burundi_compliance/burundi_compliance/print_format/sales_e_invoice/e-invoice.html b/burundi_compliance/burundi_compliance/print_format/sales_e_invoice/e-invoice.html index 97baeea..894a883 100644 --- a/burundi_compliance/burundi_compliance/print_format/sales_e_invoice/e-invoice.html +++ b/burundi_compliance/burundi_compliance/print_format/sales_e_invoice/e-invoice.html @@ -136,7 +136,7 @@ {{ letter_head.content | safe }} {%- endif %} -
+
{% set ebms_settings = frappe.get_doc("eBMS Settings", doc.company) %} {% if ebms_settings %}
Nom du contribuable: {{doc.company}}
@@ -263,7 +263,7 @@

Le client

Nature de l’article ou service - Qté + QUANTITE PU PVHTVA diff --git a/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/__init__.py b/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.html b/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.html new file mode 100644 index 0000000..4156256 --- /dev/null +++ b/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.html @@ -0,0 +1,268 @@ + + + + + + + + + Sales Invoice + + +
+ +
+ +
+ {%- set letter_head = frappe.get_doc("Letter Head", "Default") %} + {%- if letter_head and letter_head.content %} +
+ {{ letter_head.content | safe }} +
+ {%- endif %} + + + +
+ + + +
+
+ + + + + +
+

FACTURE

+

{{ doc.name }}

+
+ +

{{doc.custom_invoice_identifier}}

+ +
+ + +
+
+ +
+ + +
+
+

Le client

+ +

Nom et prénom ou Raison sociale: {{ doc.customer_name }}

+

NIF : {{ doc.tax_id }}

+

Résident à : {{ doc.customer_address }}

+

Assujetti à la TVA: + {% if doc.exempt_from_sales_tax == 1 %} + NON + {% else %} + OUI + {% endif %} +

+
+
+

Posting Date: {{ doc.posting_date }}

+

Payment Due Date: {{ doc.due_date }}

+
+
+ + +
+
+ + + + + + + + + + + {% for item in doc.items %} + + + + + + + {% endfor %} + + + + + + + {% if doc.exempt_from_sales_tax == 0 %} + + + + + {% endif %} + + + + + + +
Nature de l’article ou serviceQUANTITEPUPVHTVA
{{ item.item_name }}{{ item.qty }}{{ '{:,.0f}'.format(item.rate) }}{{ '{:,.0f}'.format(item.amount) }}
TOTAL HTVA:Fr. {{ '{:,.0f}'.format(doc.base_total | round) }}
TVA:Fr. {{ '{:,.0f}'.format(doc.base_total_taxes_and_charges | round) }}
Total TVAC:Fr. {{ '{:,.0f}'.format(doc.base_grand_total | round) }}
+
+ +
+
+ In Words: {{ doc.base_in_words }} +
+ + + +
+ +
+ + + + diff --git a/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.json b/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.json new file mode 100644 index 0000000..f614e03 --- /dev/null +++ b/burundi_compliance/burundi_compliance/print_format/sales_invoice_pf/sales_invoice_pf.json @@ -0,0 +1,32 @@ +{ + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2024-04-12 14:42:50.576732", + "custom_format": 1, + "default_print_language": "en", + "disabled": 0, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype": "Print Format", + "font_size": 14, + "html": "{%include 'burundi_compliance/burundi_compliance/print_format/sales_iinvoice_pf/sales_invoice_pf.html'%}", + "idx": 0, + "line_breaks": 0, + "margin_bottom": 15.0, + "margin_left": 15.0, + "margin_right": 15.0, + "margin_top": 15.0, + "modified": "2024-04-12 14:45:00.515260", + "modified_by": "Administrator", + "module": "Burundi Compliance", + "name": "Sales Invoice PF", + "owner": "Administrator", + "page_number": "Hide", + "print_designer": 0, + "print_format_builder": 0, + "print_format_builder_beta": 0, + "print_format_type": "Jinja", + "raw_printing": 0, + "show_section_headings": 0, + "standard": "Yes" +} \ No newline at end of file