Hi all,
I'm still working to solve this problem on my own. I used the var_dump() to investigate why the code above was not working and discovered that the obvious reasons why it did not work.
The $_POST array contained branch_id as an integer and the dimension_id was also an integer but with a different value from the branch_id. Invariably, there won't be a match.
My proposed solution is to compare the branch and dimension names (strings) within database instead of the id(s) by introducing hidden fields for the names within the form and matching them together.
My question is how do i make hidden fields within the direct invoice form in FA. I am previously used to html tags, it seems FA makes use of a different convention i am yet to fully understand. So pls i really need help on this.
Secondly, what other scripts will require modification for the solution to work?
Thanks.