|#1412| setting beginning balance to zero if previous lineItem is skipped and beginningBalance template marked as invisible in template