Home Forums Support Applying Outstanding Credits

This topic contains 3 replies, has 2 voices, and was last updated by  dogatemycomputer 3 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2488

    dogatemycomputer
    Participant

    Our customers only get 1 monthly invoice. Every so often we give them a credit. The amount of the credit may vary. In some cases the customer may receive a credit for less than their monthly invoice. Sometimes for multiple months of invoices.

    Does Invoice Ninja automatically apply outstanding credits to new invoices generated by a recurring profile?

    If the answer is “no” then how do I go about “rigging” a solution?

    I was thinking of inserting some spaghetti code here:
    app/Console/Commands/SendRecurringInvoices.php

    The problem is this line seems to create the invoice AND bill the card:
    $invoice = $this->invoiceRepo->createRecurringInvoice($recurInvoice);

    Is that correct?

    Thank you to anyone who can assist me. I am also happy to pay for support if this is not the correct forum.

    #2489

    Hillel Coren
    Keymaster

    This isn’t supported automatically.

    Inside createRecurringInvoice we only bill the card if auto-bill is enabled.

    #2490

    dogatemycomputer
    Participant

    I did confirm my own answer.

    It looks like function createRecurringInvoice is called in:
    /var/www/html/app/Ninja/Repositories/InvoiceRepository.php

    I would still like to confirm Invoice Ninja does not automatically apply credits before I have to start contaminating this beautiful source code.

    #2491

    dogatemycomputer
    Participant

    Thank you Hillen. I guess this is where I have to start ruining this beautiful piece of art. 🙁

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Posted in: