diff --git a/frappe_etax_service/README.md b/frappe_etax_service/README.md deleted file mode 100644 index ea93ba9..0000000 --- a/frappe_etax_service/README.md +++ /dev/null @@ -1 +0,0 @@ -# odoo_etax_inet diff --git a/frappe_etax_service/README.rst b/frappe_etax_service/README.rst new file mode 100644 index 0000000..83d20fd --- /dev/null +++ b/frappe_etax_service/README.rst @@ -0,0 +1,97 @@ +================================ +Connector to Frappe eTax service +================================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:163e8ccd6191b1516eb365390c750218e7eda5ce567826874343c157af1d92a4 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-ecosoft--odoo%2Fecosoft--addons-lightgray.png?logo=github + :target: https://github.com/ecosoft-odoo/ecosoft-addons/tree/15.0/frappe_etax_service + :alt: ecosoft-odoo/ecosoft-addons + +|badge1| |badge2| |badge3| + +This module provide a feature to integrate with Frappe e-Tax Service. It will send the tax invoice to Frappe server and get the signed e-Tax invoice back. + +#. At Vendor Bill, after posted vendor bill with tax, Etax invoice button will display on screen. +#. Then click Etax Invoice buttton +#. Check e-Tax status on e-Tax Info tab if status is success frappe server will return the signed e-Tax invoice attachment as pdf file and xml file back to odoo. +#. You can download the signed e-Tax invoice from the attachment. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +Set up Frappe Server URL and Frappe Auth Token + +#. Go to menu > Invoicing > Configurations > Settings +#. On title Ecosoft e-Tax Services set up Frappe Server URL and Frappe Auth Token + +Note: +Frappe Server URL is the URL of the Frappe server where the e-Tax Service is installed. Frappe Auth Token is the token generated from the Frappe server. +Contract to the provider of the e-Tax Service for the Frappe Server URL and Frappe Auth Token. + + +Configurations Form template + +#. Go to menu > Invoicing > Configurations > Etax Service > Doctype Code +#. Form name is name of odoo/frappe form, you need to use the same name as in odoo/frappe +#. Doctype code: This is the code with send to Frappe server which represent variant of tax invoice following: + * 388: ใบกำกับภาษี + * T02: ใบแจ้งหนี้/ใบกำกับภาษี + * T03: ใบเสร็จรับเงิน/ใบกำกับภาษี + * T04: ใบส่งของ/ใบกำกับภาษี + * T05: ใบกำกับภาษีอย่างย่อ + * T01: ใบรับ (ใบเสร็จรับเงิน) + * 80: ใบเพิ่มหนี้ + * 81: ใบลดหนี้ + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Kitti U. +* Ecosoft + +Contributors +~~~~~~~~~~~~ + +* `Ecosoft `__: + + * Kitti U. + * Saran Lim. + * Theerayut A. + +Maintainers +~~~~~~~~~~~ + +This module is part of the `ecosoft-odoo/ecosoft-addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/frappe_etax_service/inet/inet_data_template.py b/frappe_etax_service/inet/inet_data_template.py index 48bd676..e624afe 100644 --- a/frappe_etax_service/inet/inet_data_template.py +++ b/frappe_etax_service/inet/inet_data_template.py @@ -62,7 +62,7 @@ def prepare_data_invoice(doc): ): doc_lines.append( { - "product_code": line.product_id and line.product_id.default_code, + "product_code": line.product_id and line.product_id.default_code or "", "product_name": line.product_id and line.product_id.name or line.name, "product_price": line.price_unit, "product_quantity": line.quantity, diff --git a/frappe_etax_service/readme/CONFIGURE.rst b/frappe_etax_service/readme/CONFIGURE.rst new file mode 100644 index 0000000..cffd93f --- /dev/null +++ b/frappe_etax_service/readme/CONFIGURE.rst @@ -0,0 +1,23 @@ +Set up Frappe Server URL and Frappe Auth Token + +#. Go to menu > Invoicing > Configurations > Settings +#. On title Ecosoft e-Tax Services set up Frappe Server URL and Frappe Auth Token + +Note: +Frappe Server URL is the URL of the Frappe server where the e-Tax Service is installed. Frappe Auth Token is the token generated from the Frappe server. +Contract to the provider of the e-Tax Service for the Frappe Server URL and Frappe Auth Token. + + +Configurations Form template + +#. Go to menu > Invoicing > Configurations > Etax Service > Doctype Code +#. Form name is name of odoo/frappe form, you need to use the same name as in odoo/frappe +#. Doctype code: This is the code with send to Frappe server which represent variant of tax invoice following: + * 388: ใบกำกับภาษี + * T02: ใบแจ้งหนี้/ใบกำกับภาษี + * T03: ใบเสร็จรับเงิน/ใบกำกับภาษี + * T04: ใบส่งของ/ใบกำกับภาษี + * T05: ใบกำกับภาษีอย่างย่อ + * T01: ใบรับ (ใบเสร็จรับเงิน) + * 80: ใบเพิ่มหนี้ + * 81: ใบลดหนี้ diff --git a/frappe_etax_service/readme/CONTRIBUTORS.rst b/frappe_etax_service/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..77e8087 --- /dev/null +++ b/frappe_etax_service/readme/CONTRIBUTORS.rst @@ -0,0 +1,5 @@ +* `Ecosoft `__: + + * Kitti U. + * Saran Lim. + * Theerayut A. diff --git a/frappe_etax_service/readme/DESCRIPTION.rst b/frappe_etax_service/readme/DESCRIPTION.rst new file mode 100644 index 0000000..749351a --- /dev/null +++ b/frappe_etax_service/readme/DESCRIPTION.rst @@ -0,0 +1,6 @@ +This module provide a feature to integrate with Frappe e-Tax Service. It will send the tax invoice to Frappe server and get the signed e-Tax invoice back. + +#. At Vendor Bill, after posted vendor bill with tax, Etax invoice button will display on screen. +#. Then click Etax Invoice buttton +#. Check e-Tax status on e-Tax Info tab if status is success frappe server will return the signed e-Tax invoice attachment as pdf file and xml file back to odoo. +#. You can download the signed e-Tax invoice from the attachment. diff --git a/frappe_etax_service/static/description/index.html b/frappe_etax_service/static/description/index.html new file mode 100644 index 0000000..869834b --- /dev/null +++ b/frappe_etax_service/static/description/index.html @@ -0,0 +1,460 @@ + + + + + +Connector to Frappe eTax service + + + +
+

Connector to Frappe eTax service

+ + +

Beta License: AGPL-3 ecosoft-odoo/ecosoft-addons

+

This module provide a feature to integrate with Frappe e-Tax Service. It will send the tax invoice to Frappe server and get the signed e-Tax invoice back.

+
    +
  1. At Vendor Bill, after posted vendor bill with tax, Etax invoice button will display on screen.
  2. +
  3. Then click Etax Invoice buttton
  4. +
  5. Check e-Tax status on e-Tax Info tab if status is success frappe server will return the signed e-Tax invoice attachment as pdf file and xml file back to odoo.
  6. +
  7. You can download the signed e-Tax invoice from the attachment.
  8. +
+

Table of contents

+ +
+

Configuration

+

Set up Frappe Server URL and Frappe Auth Token

+
    +
  1. Go to menu > Invoicing > Configurations > Settings
  2. +
  3. On title Ecosoft e-Tax Services set up Frappe Server URL and Frappe Auth Token
  4. +
+

Note: +Frappe Server URL is the URL of the Frappe server where the e-Tax Service is installed. Frappe Auth Token is the token generated from the Frappe server. +Contract to the provider of the e-Tax Service for the Frappe Server URL and Frappe Auth Token.

+

Configurations Form template

+
    +
  1. Go to menu > Invoicing > Configurations > Etax Service > Doctype Code
  2. +
  3. Form name is name of odoo/frappe form, you need to use the same name as in odoo/frappe
  4. +
  5. +
    Doctype code: This is the code with send to Frappe server which represent variant of tax invoice following:
    +
      +
    • 388: ใบกำกับภาษี
    • +
    • T02: ใบแจ้งหนี้/ใบกำกับภาษี
    • +
    • T03: ใบเสร็จรับเงิน/ใบกำกับภาษี
    • +
    • T04: ใบส่งของ/ใบกำกับภาษี
    • +
    • T05: ใบกำกับภาษีอย่างย่อ
    • +
    • T01: ใบรับ (ใบเสร็จรับเงิน)
    • +
    • 80: ใบเพิ่มหนี้
    • +
    • 81: ใบลดหนี้
    • +
    +
    +
    +
  6. +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Kitti U.
  • +
  • Ecosoft
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the ecosoft-odoo/ecosoft-addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ +