Is it possible to set an expense sublist line in a...
# suitescript
e
Is it possible to set an expense sublist line in a vendor bill to disabled? I'm currently using a client script to disable individual fields, where available, but I'd prefer to do the whole line in one go, as the line may contain other sublists (eg. taxdetails). Hope that makes sense. 🙂
c
Try
CurrentRecord.cancelLine()
within a
lineInit()
function. You can conditionally disable lines depending on business logic.
🙏 1
👍 1