Giter Club home page Giter Club logo

django-taiwan-einvoice's Introduction

django-taiwan-einvoice

Documentation Status

導入財政部電子發票服務之工具集暨文件集

本文件集中所提及、引用、截取的文句、畫面多來自
財政部電子發票整合服務平台(https://www.einvoice.nat.gov.tw/) <https://www.einvoice.nat.gov.tw/>
財政部北區國稅局(https://www.ntbna.gov.tw/) <https://www.ntbna.gov.tw/>

其著作權之合理使用,
請詳見其平台之「著作權保護政策 <https://www.einvoice.nat.gov.tw/index!showCopyRights>
及「政府網站資料開放宣告 <https://www.ntbna.gov.tw/singlehtml/18025799a2014c6e8be6f305f2e474ca>
」網頁。

本文件集乃基於忠實、客觀、利己且利他等原則寫作, 難免還是有錯字、過版、語意模糊、誤用等情事發生。 請利用人就自身風險擔負能力來利用本文件集, 本文件集作者不擔保任何責任

若對本文件集有任何意見、建議或改正, 歡迎寄信到 [email protected]

文件集之目標

  • 協助消費者設定電子發票載具
  • 協助營業人在大平台處理 B2B 電子發票相關作業(撰寫中)
  • 協助營業人自建 Turnkey-3+ 來處理 B2C 電子發票相關作業(撰寫中)
  • 協助營業人透過加值服務中心完成電子發票相關作業(待續)
  • 「查詢電子發票API」教學(待續)

全文件集詳見 https://django-taiwan-einvoice.readthedocs.io/

工具集之目標

  • 基於 Turnkey-3+ 來建構 Web API 服務(所需資料庫僅支援 PostgreSQL/MySQL/MariaDB)
  • 基於 MIG-3.2.1 來開立、作廢、註銷 B2C 電子發票
  • 使用 Raspberry PI/Linux OS 透過感熱式印表機列印電子發票紙本證明聯

設定範例

...

django-taiwan-einvoice's People

Contributors

ho600 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-taiwan-einvoice's Issues

Turnkey 應用程式無法完成「下載」流程,問題在「未設定下載流程目錄」

在初始階段應用 Turnkey 時,發生電子發票 XML 在第一次成功上傳至 EI 大平台後,持續停留在 G 狀態,就算過了好幾天,都不能轉換成 C 或是其他錯誤狀態。然而,在執行「立即下載」時,並不會出現任何錯誤訊息,或在「TURNKEY_SYSEVENT_LOG」表上有任何紀錄。

百思不得其解經詢問過「財政部電子發票整合服務平台客服中心」,才知道其問題為未確定「下載流程目錄設定」,所以無法真正啟動「下載」。

而 Python 開發哲學之一是「讓錯誤看得明顯」,所以,我們應該在啟動上傳 EI 前,就要先做好目錄檢查,此需求會放到 #3

來自「財政部電子發票整合服務平台客服中心」的建議,在初始設定 Turnkey 時,就要做好「檔案收送」中的 5 個「目錄設定」,就算你的需求只有 B2C ,也請一併完成 B2B 交換/存證的目錄設定。

設定流程如下:

到「檔案收送」的子選單:

S1

開啟 5 個子畫面如下:

E

B2CS

B2BE

B2BS

DOWN

以上 5 個子畫面中,都做到:

  1. 確認訊息版本,此版本要與你所生成的 XML MIG 版本相符
  2. 按下「確定」
  3. 按下「離開」

皆完成後,就能在檔案總管中,看到如下的資料夾:

RESULT

問題就解決了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.