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 :)