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

Custom invoice payment is carried by _service_paid_by_transaction function #470

Open
wants to merge 15 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. Configuration menu
    Copy the full SHA
    d207e86 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Fix: Prevent parent service to substract paid_to days

    With my childservice paymentlogic user could see increase of paid_to date.
    For example with initial transaction extradays are added to parent
    and chid services. It could be that shildservice after next payment is
    paid more to future than new transaction gives. This commit fixes that.
    
    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    96f7736 View commit details
    Browse the repository at this point in the history
  2. Add testcases for payments

    Added testcases for payments.
    
    First testcase test normal payment of parent service, child service,
    and grand-child service. After those same are tested with custom invoice.
    Custom invoice is configured so that only one payment is registered.
    Also new feature of multple payment of single custominvoice is test.
    
    Second testcase test dynamic payment of parent service.
    
    Third testcase test dynamic pricing of custom invoice.
    
    Fourth testcase test child service payment when parent service is subscripted
    
    Ffth testcase test child service payment when parent service is unsubsripted
    
    Signed-off-by: Erkki Hietaranta <[email protected]>
    sbeach92 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    05ed433 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. Add support for child service to be paid seperately from parent service

    Added support for childservice to pe paid indepentendly.
    Useful if member want to pay membership and parent service is
    intentionally suspended.
    sbeach92 committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    e288d71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f4e7664 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5388465 View commit details
    Browse the repository at this point in the history
  4. FIX: Transaction comments breaks when Recalc user

    If user banktransfers are recalculated transaction comments
    would multiply. So cleaning lines before recalcultaion keeps
    comments tidy.
    sbeach92 committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    00a98c8 View commit details
    Browse the repository at this point in the history