Customize Save function for a module

I have to make some modifications in the save function of revenue line items module. What is the best way to achieve that on OnDemand Version.

Parents Reply
  • One 'dirty' way of doing it would be to introduce a new field that replaced the unit price field. Give it the same label and type as the current one. Let the user fill in this field and in a after save logic hook set the value of the real unit price field to the value of that new field. It's not the nicest option but it should work, Another way is to overwrite the revenue line item class using the data framework as explained here for the leads module. The only thing you should need to overwrite is the specific method that does the inheritance of the unit price from the catalogue.

Children