Skip to content

PAY-JOBS - Consider credits when mailing out amounts that will be withdrawn from bank #19182

Closed

Description

@seeker25

Credit applying to invoices runs at 8 PM PST, runs for 1 minute
Invoice creation happens at 6 PM PST
if we change the invoice creation job, split it so it sends out a notification at 9pm, instead of 6pm
it can query CAS for the amount_due and detect if there is a credit or not
so lets say there is a $100 invoice, with a $30 credit, it will take out $70 from the client's account
but email out $100 right now
hopefully if we change it to 9 pm, it will probably fix that issue

Edit: Not taking this approach, using credits table

Activity

  1. added
    Pay
    on Jan 9, 2024
  2. changed the title [-]PAY-JOBS - Potentially move invoice email outs after the credit applying job runs to provide total - credits as the amount to be taken from a client's bank account[/-] [+]PAY-JOBS - Potentially move invoice email outs after the credit applying job runs to provide total - applied credits as the amount to be taken from a client's bank account[/+] on Jan 9, 2024
  3. changed the title [-]PAY-JOBS - Potentially move invoice email outs after the credit applying job runs to provide total - applied credits as the amount to be taken from a client's bank account[/-] [+]PAY-JOBS - Move invoice email outs after the credit applying job runs to provide total - applied credits as the amount to be taken from a client's bank account[/+] on Jan 25, 2024
  4. JohnamLane commented on Jan 25, 2024

    @JohnamLane
    Collaborator
  5. self-assigned this
    on Oct 9, 2024
  6. seeker25 commented on Oct 17, 2024

    @seeker25
    ContributorAuthor

    Looked at payment_account.credits but that's real time, will have to resort to using credits.remaining_amount subtract that from the total

  7. seeker25 commented on Oct 18, 2024

    @seeker25
    ContributorAuthor

    PR is up
    Just verifying some data now, to make sure this is going to work

  8. changed the title [-]PAY-JOBS - Move invoice email outs after the credit applying job runs to provide total - applied credits as the amount to be taken from a client's bank account[/-] [+]PAY-JOBS - Consider credits when mailing out amounts that will be withdrawn from bank[/+] on Oct 21, 2024
  9. seeker25 commented on Nov 5, 2024

    @seeker25
    ContributorAuthor

    image.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Pay

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions