Skip to content

Sumex Customizations (Swiss Medical Invoices) (IP-496, IP-499)#453

Merged
Kovah merged 168 commits intoInvoicePlane:v1.5.0from
Coelis:sumex
Mar 6, 2017
Merged

Sumex Customizations (Swiss Medical Invoices) (IP-496, IP-499)#453
Kovah merged 168 commits intoInvoicePlane:v1.5.0from
Coelis:sumex

Conversation

@denysvitali
Copy link
Copy Markdown
Member

@denysvitali denysvitali commented Mar 5, 2017

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= in ipconfig.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 needed
screenshot from 2017-03-05 01-25-01

Please 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:

  • IP-496 - Add email address to client selects to differ in case of duplicate names
    

@denysvitali denysvitali changed the title Sumex Customizations ("Medical" applications) Sumex Customizations (Swiss Medical Invoices) Mar 5, 2017
@Kovah Kovah changed the title Sumex Customizations (Swiss Medical Invoices) Sumex Customizations (Swiss Medical Invoices) (IP-496, IP-499) Mar 5, 2017
@Kovah
Copy link
Copy Markdown
Contributor

Kovah commented Mar 5, 2017

Did you fixed any other parts of the application that may have an issue reference?

@Kovah
Copy link
Copy Markdown
Contributor

Kovah commented Mar 5, 2017

screen shot 2017-03-05 at 10 35 08
@denysvitali Dafuq? 😳

Please remove the commit that adds the output folder. It's 300 MB large.

@denysvitali
Copy link
Copy Markdown
Member Author

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

@denysvitali
Copy link
Copy Markdown
Member Author

screenshot from 2017-03-05 10-50-05
Seems a little bit more reasonable this number 😆

@Kovah
Copy link
Copy Markdown
Contributor

Kovah commented Mar 5, 2017

Thanks!
could you also add a small introduction for Sumex and how to configure it for the Wiki?

@denysvitali
Copy link
Copy Markdown
Member Author

The last commit adds the stamps to the web invoice (they were removed with the theme thing I think).
I've created them from scratch, and included the svg, and png + @2x. It would be nice to have them language dependent though

screenshot from 2017-03-05 22-25-43
screenshot from 2017-03-05 22-24-53

$this->load->view('invoice_templates/public/' . $this->mdl_settings->setting('public_invoice_template') . '.php', $data);
}
else{
echo '<h2>Invoice not found</h2>';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use trans() here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree. I'll fix ASAP


<h1 id="logo"><span>InvoicePlane</span></h1>

<?php var_dump($errors); ?>
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This btw should be removed, I've missed it

@Kovah Kovah merged commit 6dc9fea into InvoicePlane:v1.5.0 Mar 6, 2017
sudwebdesign added a commit that referenced this pull request May 16, 2025
**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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants