QUIQQER Invoice Module - Multi Currency Feature

작년

QUIQQER Invoice Module - Multi Currency Feature



This module extends QUIQQER with a complete invoice management system and provides different APIs to react on several invoice action.
Manage invoices simply and efficiently.

Repository

New Features

What feature(s) did you add?

The last week there were some changes in the QUIQQER Invoice Module. As explained in the last posts we build our system Multi Currency capable. I.e. you have the possibility to offer your products in different currencies.

The problem now is that you have several invoices with different currencies in your system. Only from a legal point of view it is necessary to indicate invoices separately. To make this possible a currency filter has been added. Not only the invoices are now filtered, also the totals calculations are separated for each currency.

How did you implement it/them?

First, the currency code data had to be available as a separate field in the database. This makes filtering a lot easier. Currently, the currency data was only available in JSON format.

The only thing what we need to extend is the database.xml.


(https://github.com/QUIQQER/invoice/commit/160835be0bb3e702114646abced364efb08f98e0)

So that the data can be filtered naturally, these must be inserted into the field when saving.

Now that the data can now be queried, the Invoice Search must be adapted so that the currency field can now also be filtered.

The currency can now be changed in the administration via a Currency DropDown.

The currency change was implemented as follows:

First, we had to add the DropDown to the panel.


(https://github.com/QUIQQER/invoice/commit/9ce44bf60d7ef9c6b05bbf61d00fd2f5c0173cb4)

After that only the search had to be adjusted.

The integration behaves similar to the orders, but because the Invoice is a bit more complex, the search had to be adapted more. In addition the calculation of the sums had to be acted something else.

The Invoice did not have any currencies yet and so the default currency was always displayed. We had to change this, among other things that the currency of the filter is used.

Now the Invoice also has a currency filter function

Thanks for reading,
Hen, for PCSG Developers

GitHub Account

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT
Sort Order:  trending
  ·  작년
  • Good article with images, code samples and explanations.
  • Commit messages could be more meaningful.
  • Not enough comment, or comments not useful.
  • No invitation to contribute?

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

·

Thank you for your review, @helo! Keep up the good work!

Hi @pcsg-dev!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @pcsg-dev!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!