Jump to content

How send invoice to credit memo table?


fileman922

This topic is 3158 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello , im trying to send cancelled invoices to credit memo table with all the line items.  What im trying to do is duplicate line items with negative  values (negative values is to keep real inventory) but my loop is not working , it only duplicates the first row. 

Please let me know how do you deal with this ? 

Link to comment
Share on other sites

Well, in my solution, the credit memos and invoices are in the same table, just with negative quantities.

Anyway, post your script. You're obviously not looping thru the line items correctly. You could also import from one table to the other. (If you keep the extra tables).

Link to comment
Share on other sites

This topic is 3158 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.