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

Mulysa limit service payment #476

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Commits on Feb 21, 2024

  1. Custom invoice payment is carried by _service_paid_by_transaction fun…

    …ction
    
    Custom invoice payment is carried by modified _service_paid_by_transaction
    function. Funcion has add_days input variable.
    
    Fixes issue: TampereHacklab#270
    
    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    bc1cb8a View commit details
    Browse the repository at this point in the history
  2. Child subscription paid to date relate to Parent date

    Child subscription paid to date is calculated
    from days added to Parrent subscription.
    Days that single payment adds are substracted from
    days to add to Parent subscription. This is "virtualy" payment
    date. Single payment days of child subscription is added to
    virtual payment date.
    
    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    0909e86 View commit details
    Browse the repository at this point in the history
  3. Dynamic pricing for custom invoices

    Some users might found Dynamic pricing of payments missleading
    as normal access fee can be paid with dynamic pricing, but
    reorrucing custom invoice recalls flat rate.
    
    This commit changes custom invoice logic so that it allows
    dynamic pricing. Minimium payment is calculated from service
    minimum payment * service payment times.
    
    It can be disabled from settings.py or constance admin panel
    
    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    ec62992 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. Finetuned child service payment function to support custom invoices

    Child service is paid by calling funcion again. So now if child
    service has childs, they get paid.
    
    Updated calcultaion so that multpile custominvoices
    wont break basic idea of child payments.
    sbeach92 committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    64320ca View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2024

  1. Updated transaction commenting

    Updated transaction commenting so that steps of transaction
    is easy to read
    
    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    779293b View commit details
    Browse the repository at this point in the history
  2. Toxify code

    sbeach92 committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    5542d77 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2024

  1. Custom invoice: Setting to allow multiple payment

    Admin can control if custom invoice can be paid multiple times.
    
    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    ee5f609 View commit details
    Browse the repository at this point in the history
  2. Blacked code

    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    5ed24cb View commit details
    Browse the repository at this point in the history
  3. Merge mylsa-custominvoice

    sbeach92 committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    314d237 View commit details
    Browse the repository at this point in the history
  4. Buisness logic debug log comments updated

    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    15000a8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1aa9346 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    73fab85 View commit details
    Browse the repository at this point in the history
  7. Prevent payment if service.paid_until would exceed service.days_maximum

    Payment is prevented and transaction will taced unused if
    maximum allowed prepayment time is exceeded.
    
    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    e1d359e View commit details
    Browse the repository at this point in the history
  8. Buisness logic debug log comments updated

    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    718fab4 View commit details
    Browse the repository at this point in the history
  9. Buisness logic debug log comments updated

    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    ce85e54 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3770538 View commit details
    Browse the repository at this point in the history
  11. Transaction comments and user log for limited services

    Added transactino comments and userlog enteries for maximum services.
    Currently if basic transaction or custominvoice limits are reached
    nothing happens. If main service gets paid, child service gets paid
    to maximum limit.
    
    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    733201d View commit details
    Browse the repository at this point in the history
  12. Toxified and blacked code

    sbeach92 committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    a3ae1fa View commit details
    Browse the repository at this point in the history