Hello,
I have table Documents and Documents Items.
I wanna use script to summ values of specific field at Documents Items.
var TotalExclVAT = 0;
TotalExclVAT = doo.model.DOC_documentsItems.value.DI_totalExcludeVAT._$$sum
doo.model.DOC_totalExcludesVAT.value = TotalExclVAT;
If I create new document and also new row in documents items and then save it. Zero is saved even if value is 100. If I edit this document record and save it again it works - I need to re-open that record (when it is opened again values are changed and save it properly) - why?