Pricing Routine issue
We have special issue in our company. We have created alternative calculation type routine for reading scales and get the right base price.
but we don't want this routine not to apply when return order is created with reference to invoice.
Because this routine is already done the calculation required in the invoice . When i am creating return order with reference to Invoice above, routine is re triggering again doing the calculation in the pricing overwriting the value copied from the invoice.
could any one suggest is there any way i will know this return order is creating with reference to invoice and stop executing the routine in the pricing procedure?
I need to stop this routine execution at the time of creation ? before i save the order , so i need to able to write the code in the same routine not to execute if this order is created with reference to invoice ?
Any suggestion are helpful.