当用SuiteScript操作customer payment记录的时候,选择isDynamic=true,此时如果输入了科目(account)字段的值,UNDEPOSITED FUNDS就会被取消,然后科目旁边的radio button会被选中。但是当某些逻辑需要反转选项,把account设置为空,UNDEPOSITED FUNDS这个radio button却不会被选中。

这种情况下尝试rec.setValue({fieldId: "undepfunds", value: true})是无效的,会提示You have entered an Invalid Field Value true for the following field: undepfunds

正确的方法是!

rec.setValue('undepfunds', 'T');

这个bug很明显来自SuiteScript不能很好兼容radio button

Last modified: 01/08/2021

Author

Comments

Write a Reply or Comment

Your email address will not be published.