This topic contains 3 replies, has 0 voices, and was last updated by jmessersmith 7 years, 11 months ago.

  • Author
    Posts
  • #6002

    jmessersmith

    We would like to change the customer on an invoice. I can do that no problem but the issue is the payments become unapplied. Is there a simpler way to change customers without having to open the payments and reapply them to the invoice?
    This is a cached copy. Click here to see the original post.

  • #6003

    david.smith

    The only way would be to script what you’re trying to do. It will do as you have described because you are changing the customer who is the parent record of the transactions.

  • #6004

    chanarbon

    Checking on the scenario, I must agree with david.smith that to go about this concern, you have to create a script for perform the automated reapply. For example, on beforeSubmit of the invoice, you need to detect changes on the customer field, you need to perform a search of related payment records and update them to get applied back the the invoice.


    david.smith replied on 11/01/2016, 12:50 PM: Note: Do the search and save it before reassigning the customer so you know what was applied.

  • #6005

    jmessersmith

    I don’t have the opportunity to do it in the beforeSubmit for historical invoices. I created a script that would change and reapply everything perfectly.

    The only remaining issue is the taxes. Everytime a customer gets changed on an invoice it changes the nexus and recalculates taxes. Is there some native setting to stop the recalc of the invoice?

    We put in a ticket and support came back saying we just shouldn’t change the customer…

You must be logged in to reply to this topic.