Sumex Customizations (Swiss Medical Invoices) (IP-496, IP-499)#453
Sumex Customizations (Swiss Medical Invoices) (IP-496, IP-499)#453Kovah merged 168 commits intoInvoicePlane:v1.5.0from Coelis:sumex
Conversation
|
Did you fixed any other parts of the application that may have an issue reference? |
|
Please remove the commit that adds the |
|
LOL, I guess I mistakenly included my own "output" folder, which included a doc reference for every function in InvoicePlane. I'll fix it ASAP, sorry about that |
|
Thanks! |
|
The last commit adds the stamps to the web invoice (they were removed with the theme thing I think). |
| $this->load->view('invoice_templates/public/' . $this->mdl_settings->setting('public_invoice_template') . '.php', $data); | ||
| } | ||
| else{ | ||
| echo '<h2>Invoice not found</h2>'; |
There was a problem hiding this comment.
Yes, I agree. I'll fix ASAP
|
|
||
| <h1 id="logo"><span>InvoicePlane</span></h1> | ||
|
|
||
| <?php var_dump($errors); ?> |
There was a problem hiding this comment.
This btw should be removed, I've missed it
**Be careful**: Show sumex settings panel when 'sumex' != 0 in db before this. If set sumex to No. After save settings, the panel never show. Todo: Improve lib like eInvoice | Remove it if unused by anyone. **Need Sumex?** (& Settings panel): - Set SUMEX_SETTINGS=true in ipconfig.php - Improve and/or finish libraries/Sumex.php - Add invoice_template/(pdf&public) to be same as https://cloud.githubusercontent.com/assets/4939519/23583357/a5b28e06-0142-11e7-9273-4d63b38eb422.png - - Note: Replace $item->item_description by $item->item_date --- Initiated by @denysvitali on #453 & (IMHO) never finished See #453




With this PR InvoicePlane gains the ability to generate some Swiss Medical Invoices (Sumex, MediData, SUVA invoices, it has many names!).
Read more about it here (only available in German and French) and here (English only).
Unfortunately a "pdf generator server" is needed, since the Invoices can be generated only on Windows.
Once everything is properly setup (

SUMEX_URL=inipconfig.php, some settings tuned and an invoice group containing "sumex" is created) it is possible to generate the Invoices PDFs, and eventually the XML, if neededPlease note that we didn't fully followed the standard (we needed some customization to meet our clients requirements), but it shouldn't be difficult to adapt it to be fully standard-compatible.
To fix the invoice generation problem we've created a C# application that gets the XML via HTTPS, and returns a generated PDF. We'll probably open source this software too in the near future.
If you have some question about this, or want to implement this feature in your InvoicePlane installation we're ready to help you, it's kind of tricky, but if you fill in all the fields everything works properly 👍
Enjoy! 🚀
cc/ @MarcoScarfo
Additional fixes: