Skip to content

Commit

Permalink
Merge pull request #50 from maniamartial/develop-24
Browse files Browse the repository at this point in the history
update on pos invoice
  • Loading branch information
maniamartial authored Apr 11, 2024
2 parents aae6fd4 + 82da253 commit 1ed94bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"docstatus": 0,
"doctype": "Print Format",
"font_size": 14,
"html": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Invoice</title>\n <style>\n .print-format table,\n .print-format tr,\n .print-format td,\n .print-format div,\n .print-format p {\n line-height: 150%;\n vertical-align: middle;\n }\n\n @media screen {\n .print-format {\n width: 4in;\n padding: 0.25in;\n min-height: 8in;\n }\n }\n </style>\n</head>\n<body>\n {% if letter_head %}\n {{ letter_head }}\n {% endif %}\n\n <p class=\"text-center\" style=\"margin-bottom: 1rem\">\n {{ doc.company }}<br>\n <b>{{ doc.select_print_heading or _(\"Invoice\") }}</b><br>\n </p>\n <p>\n <b>{{ _(\"Receipt No\") }}:</b> {{ doc.name }}<br>\n <b>{{ _(\"Invoice Identifier\") }}:</b> {{ doc.custom_invoice_identifier }}<br>\n <b>{{ _(\"Cashier\") }}:</b> {{ doc.owner }}<br>\n <b>{{ _(\"Customer\") }}:</b> {{ doc.customer_name }}<br>\n <b>{{ _(\"Date\") }}:</b> {{ doc.get_formatted(\"posting_date\") }}<br>\n <b>{{ _(\"Time\") }}:</b> {{ doc.get_formatted(\"posting_time\") }}<br>\n </p>\n <hr>\n <table class=\"table table-condensed\">\n <thead>\n <tr>\n <th width=\"50%\">{{ _(\"Item\") }}</th>\n <th width=\"25%\" class=\"text-right\">{{ _(\"Qty\") }}</th>\n <th width=\"25%\" class=\"text-right\">{{ _(\"Amount\") }}</th>\n </tr>\n </thead>\n <tbody>\n {%- for item in doc.items -%}\n <tr>\n <td>\n {{ item.item_code }}\n {%- if item.item_name != item.item_code -%}\n <br>{{ item.item_name }}\n {%- endif -%}\n {%- if item.serial_no -%}\n <br><b>{{ _(\"SR.No\") }}:</b><br>\n {{ item.serial_no | replace(\"\\n\", \", \") }}\n {%- endif -%}\n </td>\n <td class=\"text-right\">{{ item.qty }}<br>@ {{ item.get_formatted(\"rate\") }}</td>\n <td class=\"text-right\">{{ item.get_formatted(\"amount\") }}</td>\n </tr>\n {%- endfor -%}\n </tbody>\n </table>\n <table class=\"table table-condensed no-border\">\n <tbody>\n <tr>\n {% if doc.flags.show_inclusive_tax_in_print %}\n <td class=\"text-right\" style=\"width: 70%\">\n {{ _(\"Total Excl. Tax\") }}\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"net_total\", doc) }}\n </td>\n {% else %}\n <td class=\"text-right\" style=\"width: 70%\">\n {{ _(\"Total\") }}\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"total\", doc) }}\n </td>\n {% endif %}\n </tr>\n {%- for row in doc.taxes -%}\n {%- if not row.included_in_print_rate or doc.flags.show_inclusive_tax_in_print -%}\n <tr>\n <td class=\"text-right\" style=\"width: 70%\">\n {% if '%' in row.description %}\n {{ row.description }}\n {% else %}\n {{ row.description }}@{{ row.rate }}%\n {% endif %}\n </td>\n <td class=\"text-right\">\n {{ row.get_formatted(\"tax_amount\", doc) }}\n </td>\n </tr>\n {%- endif -%}\n {%- endfor -%}\n\n {%- if doc.discount_amount -%}\n <tr>\n <td class=\"text-right\" style=\"width: 75%\">\n {{ _(\"Discount\") }}\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"discount_amount\") }}\n </td>\n </tr>\n {%- endif -%}\n <tr>\n <td class=\"text-right\" style=\"width: 75%\">\n <b>{{ _(\"Grand Total\") }}</b>\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"grand_total\") }}\n </td>\n </tr>\n {%- if doc.rounded_total -%}\n <tr>\n <td class=\"text-right\" style=\"width: 75%\">\n <b>{{ _(\"Rounded Total\") }}</b>\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"rounded_total\") }}\n </td>\n </tr>\n {%- endif -%}\n {%- for row in doc.payments -%}\n <tr>\n <td class=\"text-right\" style=\"width: 70%\">\n {{ row.mode_of_payment }}\n </td>\n <td class=\"text-right\">\n {{ row.get_formatted(\"amount\", doc) }}\n </td>\n </tr>\n {%- endfor -%}\n <tr>\n <td class=\"text-right\" style=\"width: 75%\">\n <b>{{ _(\"Paid Amount\") }}</b>\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"paid_amount\") }}\n </td>\n </tr>\n {%- if doc.change_amount -%}\n <tr>\n <td class=\"text-right\" style=\"width: 75%\">\n <b>{{ _(\"Change Amount\") }}</b>\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"change_amount\") }}\n </td>\n </tr>\n {%- endif -%}\n </tbody>\n </table>\n <hr>\n <p>{{ doc.terms or \"\" }}</p>\n <p class=\"text-center\">{{ _(\"Thank you, please visit again.\") }}</p>\n</body>\n</html>\n",
"html": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Invoice</title>\n <style>\n .print-format table,\n .print-format tr,\n .print-format td,\n .print-format div,\n .print-format p {\n line-height: 150%;\n vertical-align: middle;\n }\n\n @media screen {\n .print-format {\n width: 4in;\n padding: 0.25in;\n min-height: 8in;\n }\n }\n </style>\n</head>\n<body>\n {% if letter_head %}\n {{ letter_head }}\n {% endif %}\n\n \n <div class=\"head_adon\" style=\"margin-top:35px\">\n {% set ebms_settings = frappe.get_doc(\"eBMS Settings\", doc.company) %}\n {% if ebms_settings %}\n <div><strong>Nom du contribuable:</strong> {{doc.company}}</div>\n <div><strong>Secteur d'activit\u00e9: </strong>{{ebms_settings.taxpayers_sector_of_activity}}</div>\n <div><strong>Registre de commerce:</strong> {{ebms_settings.the_taxpayers_commercial_register_number}}</div>\n \n {% else %}\n <div>No eBMS Settings found for company: {{ doc.company }}</div>\n {% endif %}\n <div><strong>Personne physique:</strong> Soci\u00e9t\u00e9</div>\n <div><strong>Centre Fiscal:</strong> {{ebms_settings.the_taxpayers_tax_center}}</div>\n \n \n\n </div>\n <div>\n <div><strong>Assujetti a la TVA: </strong>\n {%if ebms_settings.subject_to_vat == 0%}\n <span>NON</span>\n {%else%}\n <span>OUI</span>\n {% endif %}</div>\n <div><strong>Exon\u00e9r\u00e9 \u00e0 la TVA:</strong> {% if doc.taxes_and_charges==\"Sales Exempt\" %}\n <span>OUI</span>\n {% else %}\n <span>NON</span>\n {% endif %}\n </div>\n <div><strong>Assujetti a la TC:</strong> {% if ebms_settings.subject_to_consumption_tax==0 %}\n <span>NON</span>\n {% else %}\n <span>OUI</span>\n {% endif %}\n </div>\n <div><strong>Assujetti au PF: </strong>{% if ebms_settings.assujetti_au_pf ==0%}\n <span>NON</span>\n {% else %}\n <span>OUI</span>\n {% endif %}\n </div>\n </div>\n <p>\n <b>{{ _(\"Receipt No\") }}:</b> {{ doc.name }}<br>\n <b>{{ _(\"Invoice Identifier\") }}:</b> {{ doc.custom_invoice_identifier }}<br>\n <b>{{ _(\"Cashier\") }}:</b> {{ doc.owner }}<br>\n <b>{{ _(\"Date\") }}:</b> {{ doc.get_formatted(\"posting_date\") }}<br>\n <b>{{ _(\"Time\") }}:</b> {{ doc.get_formatted(\"posting_time\") }}<br>\n </p>\n <div> <div class=\"col-md-6\">\n <h4> Le client</h4>\n <p><strong>Personne physique:</strong> {%set customer_doc=frappe.get_doc(\"Customer\", doc.customer_name)%}\n {% if customer_doc %}\n {% if customer_doc.customer_type==\"Company\" %}\n <span>Soci\u00e9t\u00e9</span>\n {% else %}\n <span>Personne physique</span>\n {% endif %}\n {% endif %}\n </p>\n <p><strong>Nom et pr\u00e9nom ou Raison sociale:</strong> {{ doc.customer_name }}</p>\n <p><strong>NIF :</strong> {{ doc.tax_id }}</p>\n <p><strong>R\u00e9sident \u00e0 :</strong> {{ doc.customer_address }}</p>\n <p><strong>Assujetti \u00e0 la TVA:</strong>\n {% if doc.exempt_from_sales_tax == 1 %}\n NON\n {% else %}\n OUI\n {% endif %}\n </p> \n </div></div>\n <hr>\n <table class=\"table table-condensed\">\n <thead>\n <tr>\n <th width=\"50%\">{{ _(\"Item\") }}</th>\n <th width=\"25%\" class=\"text-right\">{{ _(\"Qty\") }}</th>\n <th width=\"25%\" class=\"text-right\">{{ _(\"Amount\") }}</th>\n </tr>\n </thead>\n <tbody>\n {%- for item in doc.items -%}\n <tr>\n <td>\n {{ item.item_code }}\n {%- if item.item_name != item.item_code -%}\n <br>{{ item.item_name }}\n {%- endif -%}\n {%- if item.serial_no -%}\n <br><b>{{ _(\"SR.No\") }}:</b><br>\n {{ item.serial_no | replace(\"\\n\", \", \") }}\n {%- endif -%}\n </td>\n <td class=\"text-right\">{{ item.qty }}<br>@ {{ item.get_formatted(\"rate\") }}</td>\n <td class=\"text-right\">{{ item.get_formatted(\"amount\") }}</td>\n </tr>\n {%- endfor -%}\n </tbody>\n </table>\n <table class=\"table table-condensed no-border\">\n <tbody>\n <tr>\n {% if doc.flags.show_inclusive_tax_in_print %}\n <td class=\"text-right\" style=\"width: 70%\">\n {{ _(\"Total Excl. Tax\") }}\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"net_total\", doc) }}\n </td>\n {% else %}\n <td class=\"text-right\" style=\"width: 70%\">\n {{ _(\"Total\") }}\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"total\", doc) }}\n </td>\n {% endif %}\n </tr>\n {%- for row in doc.taxes -%}\n {%- if not row.included_in_print_rate or doc.flags.show_inclusive_tax_in_print -%}\n <tr>\n <td class=\"text-right\" style=\"width: 70%\">\n {% if '%' in row.description %}\n {{ row.description }}\n {% else %}\n {{ row.description }}@{{ row.rate }}%\n {% endif %}\n </td>\n <td class=\"text-right\">\n {{ row.get_formatted(\"tax_amount\", doc) }}\n </td>\n </tr>\n {%- endif -%}\n {%- endfor -%}\n\n {%- if doc.discount_amount -%}\n <tr>\n <td class=\"text-right\" style=\"width: 75%\">\n {{ _(\"Discount\") }}\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"discount_amount\") }}\n </td>\n </tr>\n {%- endif -%}\n <tr>\n <td class=\"text-right\" style=\"width: 75%\">\n <b>{{ _(\"Grand Total\") }}</b>\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"grand_total\") }}\n </td>\n </tr>\n {%- if doc.rounded_total -%}\n <tr>\n <td class=\"text-right\" style=\"width: 75%\">\n <b>{{ _(\"Rounded Total\") }}</b>\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"rounded_total\") }}\n </td>\n </tr>\n {%- endif -%}\n {%- for row in doc.payments -%}\n <tr>\n <td class=\"text-right\" style=\"width: 70%\">\n {{ row.mode_of_payment }}\n </td>\n <td class=\"text-right\">\n {{ row.get_formatted(\"amount\", doc) }}\n </td>\n </tr>\n {%- endfor -%}\n <tr>\n <td class=\"text-right\" style=\"width: 75%\">\n <b>{{ _(\"Paid Amount\") }}</b>\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"paid_amount\") }}\n </td>\n </tr>\n {%- if doc.change_amount -%}\n <tr>\n <td class=\"text-right\" style=\"width: 75%\">\n <b>{{ _(\"Change Amount\") }}</b>\n </td>\n <td class=\"text-right\">\n {{ doc.get_formatted(\"change_amount\") }}\n </td>\n </tr>\n {%- endif -%}\n </tbody>\n </table>\n <hr>\n <p>{{ doc.terms or \"\" }}</p>\n <p class=\"text-center\">{{ _(\"Thank you, please visit again.\") }}</p>\n</body>\n</html>\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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
{%else%}
<span>OUI</span>
{% endif %}</div>
<div><strong>Exonéré à la TVA:</strong> {% if ebms_settings.exempted_from_vat==0 %}
<div><strong>Exonéré à la TVA:</strong> {% if doc.taxes_and_charges=="Sales Exempt" %}
<span>OUI</span>
{% else %}
<span>NON</span>
Expand Down

0 comments on commit 1ed94bf

Please sign in to comment.