Pricing rule to work in sales order based on its new field

In pricing rule(customize) i have added “address” as an option in “applicable_for” docfield.
i have also opened a new field “address”, whose display depends on applicable_for==address.
so now when i’m making 2 different pricing rules choosing different address(for two different customers) but same items, i am getting an error in sales order that “Multiple Price Rules exists with same criteria”.

Help me out with the code , so that it can differentiate the pricing rules based on the address. if i choose customer A in sales order than it has to match the address field in pricing rule and accordingly apply the rule.
Thanks!
Akshat

any solution for this ?

Yes for that you will need to develop the code, here’s a good place to start