Discussions
account or undeposited funds field on transactions?
I have been looking high and low for the correct way to set a new cash sale created through a server side script to undeposited funds.
I tried trecord.setFieldValue('account', '65'); (65 is Undeposited Funds) and I can see that it does change it when I log a note.
But when I open the cash sale it is set to a different account. Actually it shows two accounts. One bank account in view mode and changes to the default bank account in edit mode???
Does anyone have any insight into how I would set either the Undeposited Funds or Account field through a script?