Good morning! Our PO form has expenses before item...
# general
e
Good morning! Our PO form has expenses before items, its driving me nuts! Is there anyway to put the items tab before the expenses tab?
m
Yep! Customise the PO form, then Sublists, and simply swap the ordering of the Expense and Items tab!
e
Well now I am stumped ... I do not have an items tab under my sublists tab. Mine starts with relationships. I am an admin user
e
I'd try clearing my cache to see if the Items tab shows up (though I wouldn't bet on it) I've run into similar issues on multiple accounts, across multiple forms In the past I was forced to make a "hacky" workaround that was just a single line of code that would essentially "click" on the Items tab as soon as the Purchase Order page loaded.
@Mika Hakkinen Didn't you have a similar issue with your Bill Credit form? Did you get that working?
m
@ericbirdsall Yes, I did. Well remembered! And no, I never bothered with Bill Credits. Just bills and POs as per the above method
e
hmm I will see if our programmer can come up with anything.
e
Copy code
pageInit: function () {
    // Focuses the Item subtab instead of Expense subtab
    document.getElementById('itemtxt').click();
  }
This should be all your programmer needs to handle this. It's a Client Script that runs on your PO record. Type = pageInit
e
Thank you!!
r
Hold on, how did you get the Expense subtab on the PO form? I've been looking for a while on how to do this
e
I wish I could tell you! lol
k
There's an option in accounting preferences
Note that expenses on a PO can only be received once - it's always treated as a quantity of 1
r
Thanks Kevin - seems to be an option on one of my accounts and not the other
m
Yeah. Customize the form and the you can move the sublists:
e
Thank you @ericbirdsall our developer fixed my problem and my day is that much better!!!
cheers 1