Client has branches which loosely match warehouses.
That means when a sales order is in say, the VIC warehouse, the branch should also match VIC.
Branch masking is set up in the ledger config. The reason for branch masking and not warehouse masking is because there is often a scenario when sales may need to be done in warehouse NSW because that's where the stock is, but the GL needs to reflect VIC, so branch = VIC.
What I'd like is a visual alert when that scenario happens. I am thinking a little flashing exclamation mark (like when a debtor email address looks dodgy) just left of the combobox.
Although I haven't attempted a plugin yet, I'd like to know a few things:
1. What SalesOrderEntryForm event should I hook into, or how best to display the alert?
2. What is the code that implements the flashing exclamation mark?
I'm OK to do the warehouse/branch comparison.


