ho600-ltd / django-taiwan-einvoice Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
此需求主要因應 Turnkey 在執行「下載」時,若無「設定下載目錄」也不會顯示任何錯誤訊息,而直接忽略下載。
The default character settings in MariaDB server.conf is
character-set-server = utf8mb4
collation-server = utf8mb4_general_ci
And the Turnkey-2.0.x application only uses utf8 charset, so if you save Chinese in the Turnkey application, it will only show ???.
The solution is utf8mb3.
character-set-server = utf8mb3
collation-server = utf8mb3_general_ci
在初始階段應用 Turnkey 時,發生電子發票 XML 在第一次成功上傳至 EI 大平台後,持續停留在 G 狀態,就算過了好幾天,都不能轉換成 C 或是其他錯誤狀態。然而,在執行「立即下載」時,並不會出現任何錯誤訊息,或在「TURNKEY_SYSEVENT_LOG」表上有任何紀錄。
百思不得其解經詢問過「財政部電子發票整合服務平台客服中心」,才知道其問題為未確定「下載流程目錄設定」,所以無法真正啟動「下載」。
而 Python 開發哲學之一是「讓錯誤看得明顯」,所以,我們應該在啟動上傳 EI 前,就要先做好目錄檢查,此需求會放到 #3 。
來自「財政部電子發票整合服務平台客服中心」的建議,在初始設定 Turnkey 時,就要做好「檔案收送」中的 5 個「目錄設定」,就算你的需求只有 B2C ,也請一併完成 B2B 交換/存證的目錄設定。
設定流程如下:
到「檔案收送」的子選單:
開啟 5 個子畫面如下:
以上 5 個子畫面中,都做到:
皆完成後,就能在檔案總管中,看到如下的資料夾:
問題就解決了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.