DO printout. Updated generation of line number based on stock_move.parent_id field.