Yes, in ideal scenarios..
period_net values are NET values.
Whichever is higher in sum(l.accounted_dr) and sum(l.accounted_cr) of gl_je_lines,
only that side will be populated in gl_balances with the difference.