Bulk Buying - Development Log #467

Michi talks about why the team will take a short break from the gateway development and what they'll do instead.

Avatar Michi

Michi (molp)

I spent most of the week working on remote stores, see #466. Unfortunately, it is a bit more complicated than I expected. Also, even when the remote stores are implemented, a lot of work remains until the gateway release will see the light of the day.

Which is why we decided to take a break and implement a few changes and bugfixes that were meant for the next maintenance release earlier than planned. One of the features we have in mind is the long-awaited enhancement of the contract system, also known as "multi-commodity contracts".

The goal is to allow adding multiple commodities to buy, sell and shipping contracts. Of course, there are many ways to do that, but right now, I want to re-use as many existing contract conditions as possible to keep the development time to a minimum.

So far I only had time to look into the "buy commodity" template

As you can see, the new template allows adding additional commodities. The price per unit and the number of units can be set individually for each commodity. A commodity can also be removed again. The template also shows the grand total of all commodities. Once the template is saved, it will create pairs of contract conditions, made up of a delivery and payment condition.

One could argue that having a single payment condition and a single delivery condition might be preferred in some use cases, but then again, we'd need to rewrite the existing conditions or create new ones to make that happen. I have a gut feeling that allowing contracts to be multi-commodity as presented above might already be a major move into the right direction.

As always, we'd love to hear what you think: join us on Discord or the forums!

Happy trading!