Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from TampereHacklab:master #124

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

pull[bot]
Copy link

@pull pull bot commented Feb 12, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

sbeach92 and others added 2 commits February 12, 2025 17:15
* Custom invoice payment is carried by _service_paid_by_transaction function

Custom invoice payment is carried by modified _service_paid_by_transaction
function. Funcion has add_days input variable.

Fixes issue: #270

Signed-off-by: Erkki Hietaranta <[email protected]>

* Child subscription paid to date relate to Parent date

Child subscription paid to date is calculated
from days added to Parrent subscription so that multpile custominvoices
wont break basic idea of child payments.

Days that single payment adds are substracted from
days to add to Parent subscription. This is "virtual" payment
date. Single payment days of child subscription is added to
virtual payment date.

Child service is paid by calling funcion again. So now if child
service has childs, they get paid.

Prevent parent service to substract paid_to days

Signed-off-by: Erkki Hietaranta <[email protected]>

* Added test cases for service payments

Added testcases for servicepayments in monthly recurring way.
Added testcases for custominvoice payments.

* Childservice payment comments

Added comments for childservice calultaion

* Corrected spelling and layout

Co-authored-by: Tatu Wikman <[email protected]>
Signed-off-by: Erkki Hietaranta <[email protected]>

* Makemessages

Run of ./manage.py makemessages -l fi --no-obsolete, to update translation files, even only rownumbers has change.

Signed-off-by: Erkki Hietaranta <[email protected]>

---------

Signed-off-by: Erkki Hietaranta <[email protected]>
Co-authored-by: Tatu Wikman <[email protected]>
@pull pull bot added the ⤵️ pull label Feb 12, 2025
@pull pull bot merged commit 99c0b5e into vaasahacklab:master Feb 12, 2025
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.

1 participant