diff --git a/burundi_compliance/burundi_compliance/doctype/ebms_settings/ebms_settings.json b/burundi_compliance/burundi_compliance/doctype/ebms_settings/ebms_settings.json index 6132901..1f9e730 100644 --- a/burundi_compliance/burundi_compliance/doctype/ebms_settings/ebms_settings.json +++ b/burundi_compliance/burundi_compliance/doctype/ebms_settings/ebms_settings.json @@ -20,7 +20,6 @@ "the_taxpayers_commercial_register_number", "the_taxpayers_tax_center", "subject_to_vat", - "exempted_from_vat", "column_break_xego", "system_identification_given_by_obr", "type_of_taxpayer", @@ -249,12 +248,6 @@ "fieldtype": "Data", "label": "Stock Movement Cron Format" }, - { - "default": "0", - "fieldname": "exempted_from_vat", - "fieldtype": "Check", - "label": "Exon\u00e9r\u00e9 \u00e0 la TVA" - }, { "default": "0", "fieldname": "assujetti_au_pf", @@ -264,7 +257,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2024-04-10 09:08:59.913123", + "modified": "2024-04-11 11:11:41.140980", "modified_by": "Administrator", "module": "Burundi Compliance", "name": "eBMS Settings", diff --git a/burundi_compliance/burundi_compliance/print_format/pos_e_invoice/pos_e_invoice.json b/burundi_compliance/burundi_compliance/print_format/pos_e_invoice/pos_e_invoice.json index 01fef1b..5424bbf 100644 --- a/burundi_compliance/burundi_compliance/print_format/pos_e_invoice/pos_e_invoice.json +++ b/burundi_compliance/burundi_compliance/print_format/pos_e_invoice/pos_e_invoice.json @@ -9,14 +9,14 @@ "docstatus": 0, "doctype": "Print Format", "font_size": 14, - "html": "\n\n\n \n \n Invoice\n \n\n\n {% if letter_head %}\n {{ letter_head }}\n {% endif %}\n\n

\n {{ doc.company }}
\n {{ doc.select_print_heading or _(\"Invoice\") }}
\n

\n

\n {{ _(\"Receipt No\") }}: {{ doc.name }}
\n {{ _(\"Invoice Identifier\") }}: {{ doc.custom_invoice_identifier }}
\n {{ _(\"Cashier\") }}: {{ doc.owner }}
\n {{ _(\"Customer\") }}: {{ doc.customer_name }}
\n {{ _(\"Date\") }}: {{ doc.get_formatted(\"posting_date\") }}
\n {{ _(\"Time\") }}: {{ doc.get_formatted(\"posting_time\") }}
\n

\n
\n \n \n \n \n \n \n \n \n \n {%- for item in doc.items -%}\n \n \n \n \n \n {%- endfor -%}\n \n
{{ _(\"Item\") }}{{ _(\"Qty\") }}{{ _(\"Amount\") }}
\n {{ item.item_code }}\n {%- if item.item_name != item.item_code -%}\n
{{ item.item_name }}\n {%- endif -%}\n {%- if item.serial_no -%}\n
{{ _(\"SR.No\") }}:
\n {{ item.serial_no | replace(\"\\n\", \", \") }}\n {%- endif -%}\n
{{ item.qty }}
@ {{ item.get_formatted(\"rate\") }}
{{ item.get_formatted(\"amount\") }}
\n \n \n \n {% if doc.flags.show_inclusive_tax_in_print %}\n \n \n {% else %}\n \n \n {% endif %}\n \n {%- for row in doc.taxes -%}\n {%- if not row.included_in_print_rate or doc.flags.show_inclusive_tax_in_print -%}\n \n \n \n \n {%- endif -%}\n {%- endfor -%}\n\n {%- if doc.discount_amount -%}\n \n \n \n \n {%- endif -%}\n \n \n \n \n {%- if doc.rounded_total -%}\n \n \n \n \n {%- endif -%}\n {%- for row in doc.payments -%}\n \n \n \n \n {%- endfor -%}\n \n \n \n \n {%- if doc.change_amount -%}\n \n \n \n \n {%- endif -%}\n \n
\n {{ _(\"Total Excl. Tax\") }}\n \n {{ doc.get_formatted(\"net_total\", doc) }}\n \n {{ _(\"Total\") }}\n \n {{ doc.get_formatted(\"total\", doc) }}\n
\n {% if '%' in row.description %}\n {{ row.description }}\n {% else %}\n {{ row.description }}@{{ row.rate }}%\n {% endif %}\n \n {{ row.get_formatted(\"tax_amount\", doc) }}\n
\n {{ _(\"Discount\") }}\n \n {{ doc.get_formatted(\"discount_amount\") }}\n
\n {{ _(\"Grand Total\") }}\n \n {{ doc.get_formatted(\"grand_total\") }}\n
\n {{ _(\"Rounded Total\") }}\n \n {{ doc.get_formatted(\"rounded_total\") }}\n
\n {{ row.mode_of_payment }}\n \n {{ row.get_formatted(\"amount\", doc) }}\n
\n {{ _(\"Paid Amount\") }}\n \n {{ doc.get_formatted(\"paid_amount\") }}\n
\n {{ _(\"Change Amount\") }}\n \n {{ doc.get_formatted(\"change_amount\") }}\n
\n
\n

{{ doc.terms or \"\" }}

\n

{{ _(\"Thank you, please visit again.\") }}

\n\n\n", + "html": "\n\n\n \n \n Invoice\n \n\n\n {% if letter_head %}\n {{ letter_head }}\n {% endif %}\n\n \n
\n {% set ebms_settings = frappe.get_doc(\"eBMS Settings\", doc.company) %}\n {% if ebms_settings %}\n
Nom du contribuable: {{doc.company}}
\n
Secteur d'activit\u00e9: {{ebms_settings.taxpayers_sector_of_activity}}
\n
Registre de commerce: {{ebms_settings.the_taxpayers_commercial_register_number}}
\n \n {% else %}\n
No eBMS Settings found for company: {{ doc.company }}
\n {% endif %}\n
Personne physique: Soci\u00e9t\u00e9
\n
Centre Fiscal: {{ebms_settings.the_taxpayers_tax_center}}
\n \n \n\n
\n
\n
Assujetti a la TVA: \n {%if ebms_settings.subject_to_vat == 0%}\n NON\n {%else%}\n OUI\n {% endif %}
\n
Exon\u00e9r\u00e9 \u00e0 la TVA: {% if doc.taxes_and_charges==\"Sales Exempt\" %}\n OUI\n {% else %}\n NON\n {% endif %}\n
\n
Assujetti a la TC: {% if ebms_settings.subject_to_consumption_tax==0 %}\n NON\n {% else %}\n OUI\n {% endif %}\n
\n
Assujetti au PF: {% if ebms_settings.assujetti_au_pf ==0%}\n NON\n {% else %}\n OUI\n {% endif %}\n
\n
\n

\n {{ _(\"Receipt No\") }}: {{ doc.name }}
\n {{ _(\"Invoice Identifier\") }}: {{ doc.custom_invoice_identifier }}
\n {{ _(\"Cashier\") }}: {{ doc.owner }}
\n {{ _(\"Date\") }}: {{ doc.get_formatted(\"posting_date\") }}
\n {{ _(\"Time\") }}: {{ doc.get_formatted(\"posting_time\") }}
\n

\n
\n

Le client

\n

Personne physique: {%set customer_doc=frappe.get_doc(\"Customer\", doc.customer_name)%}\n {% if customer_doc %}\n {% if customer_doc.customer_type==\"Company\" %}\n Soci\u00e9t\u00e9\n {% else %}\n Personne physique\n {% endif %}\n {% endif %}\n

\n

Nom et pr\u00e9nom ou Raison sociale: {{ doc.customer_name }}

\n

NIF : {{ doc.tax_id }}

\n

R\u00e9sident \u00e0 : {{ doc.customer_address }}

\n

Assujetti \u00e0 la TVA:\n {% if doc.exempt_from_sales_tax == 1 %}\n NON\n {% else %}\n OUI\n {% endif %}\n

\n
\n
\n \n \n \n \n \n \n \n \n \n {%- for item in doc.items -%}\n \n \n \n \n \n {%- endfor -%}\n \n
{{ _(\"Item\") }}{{ _(\"Qty\") }}{{ _(\"Amount\") }}
\n {{ item.item_code }}\n {%- if item.item_name != item.item_code -%}\n
{{ item.item_name }}\n {%- endif -%}\n {%- if item.serial_no -%}\n
{{ _(\"SR.No\") }}:
\n {{ item.serial_no | replace(\"\\n\", \", \") }}\n {%- endif -%}\n
{{ item.qty }}
@ {{ item.get_formatted(\"rate\") }}
{{ item.get_formatted(\"amount\") }}
\n \n \n \n {% if doc.flags.show_inclusive_tax_in_print %}\n \n \n {% else %}\n \n \n {% endif %}\n \n {%- for row in doc.taxes -%}\n {%- if not row.included_in_print_rate or doc.flags.show_inclusive_tax_in_print -%}\n \n \n \n \n {%- endif -%}\n {%- endfor -%}\n\n {%- if doc.discount_amount -%}\n \n \n \n \n {%- endif -%}\n \n \n \n \n {%- if doc.rounded_total -%}\n \n \n \n \n {%- endif -%}\n {%- for row in doc.payments -%}\n \n \n \n \n {%- endfor -%}\n \n \n \n \n {%- if doc.change_amount -%}\n \n \n \n \n {%- endif -%}\n \n
\n {{ _(\"Total Excl. Tax\") }}\n \n {{ doc.get_formatted(\"net_total\", doc) }}\n \n {{ _(\"Total\") }}\n \n {{ doc.get_formatted(\"total\", doc) }}\n
\n {% if '%' in row.description %}\n {{ row.description }}\n {% else %}\n {{ row.description }}@{{ row.rate }}%\n {% endif %}\n \n {{ row.get_formatted(\"tax_amount\", doc) }}\n
\n {{ _(\"Discount\") }}\n \n {{ doc.get_formatted(\"discount_amount\") }}\n
\n {{ _(\"Grand Total\") }}\n \n {{ doc.get_formatted(\"grand_total\") }}\n
\n {{ _(\"Rounded Total\") }}\n \n {{ doc.get_formatted(\"rounded_total\") }}\n
\n {{ row.mode_of_payment }}\n \n {{ row.get_formatted(\"amount\", doc) }}\n
\n {{ _(\"Paid Amount\") }}\n \n {{ doc.get_formatted(\"paid_amount\") }}\n
\n {{ _(\"Change Amount\") }}\n \n {{ doc.get_formatted(\"change_amount\") }}\n
\n
\n

{{ doc.terms or \"\" }}

\n

{{ _(\"Thank you, please visit again.\") }}

\n\n\n", "idx": 0, "line_breaks": 0, "margin_bottom": 15.0, "margin_left": 15.0, "margin_right": 15.0, "margin_top": 15.0, - "modified": "2024-03-20 06:42:40.521605", + "modified": "2024-04-11 12:02:54.114860", "modified_by": "Administrator", "module": "Burundi Compliance", "name": "POS E-Invoice", 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 6f500a9..97baeea 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 @@ -177,7 +177,7 @@ {%else%} OUI {% endif %} -
Exonéré à la TVA: {% if ebms_settings.exempted_from_vat==0 %} +
Exonéré à la TVA: {% if doc.taxes_and_charges=="Sales Exempt" %} OUI {% else %} NON