hackerspace-bootstrap / strichliste-web

DEPRECATED - frontend for the strichliste api
http://demo.strichliste.org/
MIT License
11 stars 10 forks source link

Transfer money #83

Closed NicoHood closed 6 years ago

NicoHood commented 6 years ago

This PR is based on #78 . I will rebase once this PR got merged.

It adds basic money transfer buttons between users, using the current/old API. There are some limitations along with some bugs:

A proper transfer backend API should be was implemented. However this can be used as workaround in the meantime. I recommend setting the account transfer limits to infinitive value or at least make sure that subtracting transfers are always lower than addition transfers.

Translation is also required.

NicoHood commented 6 years ago

Some pictures for more illustration:

screenshot from 2018-01-27 02-40-33

screenshot from 2018-01-27 02-40-52

schinken commented 6 years ago

Thanks for that feature, but also I would like that feature disabled by default through settings. In a default install, there should be no third row, even if it works technically.

Could you add a settings parameter and just hide the third row?

NicoHood commented 6 years ago

Of course, I will work on that.

schinken commented 6 years ago

Btw, that might not be that hard after all. You just need to add some ng-if to the html tags wrapping the buttons and on the table head and column. Like ng-if="settings.wireTransfer"

NicoHood commented 6 years ago

I've added the suggested option. However the open TODO needs to get fixed. If removing the money does not work, adding should be cancelled. Alternatively I will try to implement a transfer API now.

NicoHood commented 6 years ago

This PR should be merged once the comment PR was merged. I will then rebase, so the diff is smaller.

NicoHood commented 6 years ago

I have rebased the PR. It would be nice if you can give this and the backend PR a quick review :)