How to interact with a module from a different module

Hello. I have 2 modules, pricelines and custom_pricing both interacting with the Line Item (so Product) in Quotes. The idea is that the first one offers a list of alternative prices for a product based on an identifier and the other offers a list of alternative prices based on quantity (basically a discount). And the business logic I need to implement is: IF the line item has been ALREADY "affected" by the pricelines module, do not let the quantity based thing be applied. So.. how could I from file "A" mark the line item as "touched already" so from file "B" I can make an if statement among the lines of if (touch mark present) { skip everything }. I hope I was clear enough in my explanation :)

Parents Reply
  • You missed a bit from my explanation or I am not clear enough. This question is about the "A+B" situation, when both exists but they are not equal. A touches files in custom//modules/Quotes/clients/base/views and module B touches files in custom....Products/clients/base/fields. But both A and B are actually used in quotes module, as you have seen my screenshot. A and B are not equal. If "A" was used than B should not apply his own magic, to avoid double discounting. (in reality both modules are discounts, one is quantity based (our "B") and one is simply a list of alternatives (think VIP, Member, Gold, Platina, etc)

Children