Transaction - How not to duplicate code?

  • Thread starter Thread starter Sergio_CL
  • Start date Start date
S

Sergio_CL

Guest
Hi!

I have a transaction to pay invoices, you pick one or more invoices, select the payment methods and apply the payment. Works nice.

Now on the POS module a customer can pay immediately when you enter the sales order. I need to add the payment logic. I'd like to reuse the transaction described previously to avoid duplicating the code but the transaction doesn't save the sales order, update inventory, etc, etc. How would you go about and implement this without duplicating code?

Thanks,

ST

Continue reading...
 
Back
Top